mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 22:58:09 +00:00
BLADERUNNER: Play full exit KIA sound before quit via KIA
This commit is contained in:
parent
79fcee786a
commit
f5b79a4cdf
@ -663,7 +663,13 @@ void KIA::mouseDownCallback(int buttonId, void *callbackData) {
|
|||||||
case 14:
|
case 14:
|
||||||
self->_vm->_audioPlayer->playAud(self->_vm->_gameInfo->getSfxTrack(kSfxBUTN5P), 70, 0, 0, 50, 0);
|
self->_vm->_audioPlayer->playAud(self->_vm->_gameInfo->getSfxTrack(kSfxBUTN5P), 70, 0, 0, 50, 0);
|
||||||
if (buttonId == 12) {
|
if (buttonId == 12) {
|
||||||
self->_vm->_audioPlayer->playAud(self->_vm->_gameInfo->getSfxTrack(kSfxSHUTDOWN), 70, 0, 0, 50, 0);
|
int endTrackId = self->_vm->_audioPlayer->playAud(self->_vm->_gameInfo->getSfxTrack(kSfxSHUTDOWN), 70, 0, 0, 50, 0);
|
||||||
|
if (endTrackId != -1) {
|
||||||
|
// wait until the full clip has played (similar to the original)
|
||||||
|
while (self->_vm->_audioPlayer->isActive(endTrackId)) {
|
||||||
|
self->_vm->_system->delayMillis(16);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 15:
|
case 15:
|
||||||
|
Loading…
Reference in New Issue
Block a user