Skip to content
Permalink
Browse files

BLADERUNNER: Play full exit KIA sound before quit via KIA

  • Loading branch information...
antoniou79 committed Sep 9, 2019
1 parent 79fcee7 commit f5b79a4cdfc2e481c275eb8fb9b3b833648479c5
Showing with 7 additions and 1 deletion.
  1. +7 −1 engines/bladerunner/ui/kia.cpp
@@ -663,7 +663,13 @@ void KIA::mouseDownCallback(int buttonId, void *callbackData) {
case 14:
self->_vm->_audioPlayer->playAud(self->_vm->_gameInfo->getSfxTrack(kSfxBUTN5P), 70, 0, 0, 50, 0);
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;
case 15:

0 comments on commit f5b79a4

Please sign in to comment.
You can’t perform that action at this time.