From e209e1583321f756a93ca253f1aca1c10f996ab9 Mon Sep 17 00:00:00 2001 From: Strangerke Date: Sat, 10 Aug 2013 22:37:26 +0200 Subject: MORTEVIELLE: Fix check of end of stream --- engines/mortevielle/speech.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/mortevielle') 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; } -- cgit v1.2.3