aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorThierry Crozat2018-01-10 23:13:05 +0000
committerThierry Crozat2018-01-23 02:15:47 +0000
commiteafd739c6611c11d99fb1e41577412174e4d034b (patch)
treef442c668c0120efae2db54d1dab53b4a2f45efc4 /engines
parentac609c91dbb26111396abfc22016e91967dca6d9 (diff)
downloadscummvm-rg350-eafd739c6611c11d99fb1e41577412174e4d034b.tar.gz
scummvm-rg350-eafd739c6611c11d99fb1e41577412174e4d034b.tar.bz2
scummvm-rg350-eafd739c6611c11d99fb1e41577412174e4d034b.zip
SUPERNOVA: Improve waiting until a sound has finished playing
Diffstat (limited to 'engines')
-rw-r--r--engines/supernova/rooms.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/supernova/rooms.cpp b/engines/supernova/rooms.cpp
index 5893c48513..d8b138f9a7 100644
--- a/engines/supernova/rooms.cpp
+++ b/engines/supernova/rooms.cpp
@@ -181,7 +181,8 @@ void Intro::titleScreen() {
_gm->getInput();
// TODO: render animated text
_vm->playSound(kAudioVoiceYeah);
- while (_vm->_mixer->isSoundHandleActive(_vm->_soundHandle));
+ while (_vm->_mixer->isSoundHandleActive(_vm->_soundHandle))
+ _gm->wait2(1);
_vm->paletteFadeOut();
}
@@ -463,15 +464,15 @@ void Intro::cutscene() {
exitOnEscape(10);
_vm->playSound(kAudioSnoring);
while (_vm->_mixer->isSoundHandleActive(_vm->_soundHandle))
- ;
+ _gm->wait2(1);
exitOnEscape(10);
_vm->playSound(kAudioSnoring);
while (_vm->_mixer->isSoundHandleActive(_vm->_soundHandle))
- ;
+ _gm->wait2(1);
exitOnEscape(10);
_vm->playSound(kAudioSnoring);
while (_vm->_mixer->isSoundHandleActive(_vm->_soundHandle))
- ;
+ _gm->wait2(1);
exitOnEscape(30);
CursorMan.showMouse(true);