diff options
author | Strangerke | 2013-08-10 22:37:26 +0200 |
---|---|---|
committer | Strangerke | 2013-08-10 22:37:26 +0200 |
commit | e209e1583321f756a93ca253f1aca1c10f996ab9 (patch) | |
tree | 6835ea5037357a294ead137af2e9ff4a4176e94d /engines/mortevielle | |
parent | eb61855ca02cf2d058244b49d972d36ea3e0c2a1 (diff) | |
download | scummvm-rg350-e209e1583321f756a93ca253f1aca1c10f996ab9.tar.gz scummvm-rg350-e209e1583321f756a93ca253f1aca1c10f996ab9.tar.bz2 scummvm-rg350-e209e1583321f756a93ca253f1aca1c10f996ab9.zip |
MORTEVIELLE: Fix check of end of stream
Diffstat (limited to 'engines/mortevielle')
-rw-r--r-- | engines/mortevielle/speech.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mortevielle/speech.cpp b/engines/mortevielle/speech.cpp index 0966930718..4940c93754 100644 --- a/engines/mortevielle/speech.cpp +++ b/engines/mortevielle/speech.cpp @@ -555,10 +555,10 @@ void SpeechManager::startSpeech(int rep, int ht, int typ) { if (typ != 0) { Audio::SoundHandle soundHandle; + _vm->_soundManager._audioStream->finish(); _vm->_soundManager._mixer->playStream(Audio::Mixer::kSFXSoundType, &soundHandle, _vm->_soundManager._audioStream); while (_vm->_soundManager._mixer->isSoundHandleActive(soundHandle) && !_vm->keyPressed() && !_vm->_mouseClick && !_vm->shouldQuit()) ; - _vm->_soundManager._audioStream->finish(); _vm->_soundManager._mixer->stopHandle(soundHandle); _vm->_soundManager._audioStream = nullptr; } |