aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle
diff options
context:
space:
mode:
authorStrangerke2013-08-10 22:37:26 +0200
committerStrangerke2013-08-10 22:37:26 +0200
commite209e1583321f756a93ca253f1aca1c10f996ab9 (patch)
tree6835ea5037357a294ead137af2e9ff4a4176e94d /engines/mortevielle
parenteb61855ca02cf2d058244b49d972d36ea3e0c2a1 (diff)
downloadscummvm-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.cpp2
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;
}