diff options
author | Thierry Crozat | 2018-01-10 23:13:05 +0000 |
---|---|---|
committer | Thierry Crozat | 2018-01-23 02:15:47 +0000 |
commit | eafd739c6611c11d99fb1e41577412174e4d034b (patch) | |
tree | f442c668c0120efae2db54d1dab53b4a2f45efc4 /engines | |
parent | ac609c91dbb26111396abfc22016e91967dca6d9 (diff) | |
download | scummvm-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.cpp | 9 |
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); |