aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/kyra/sound.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/kyra/sound.cpp b/engines/kyra/sound.cpp
index 1b076444b4..5a6ec3cb3d 100644
--- a/engines/kyra/sound.cpp
+++ b/engines/kyra/sound.cpp
@@ -72,12 +72,13 @@ void Sound::voicePlay(const char *file) {
return;
Common::MemoryReadStream vocStream(fileData, fileSize);
- _mixer->stopHandle(_vocHandle);
_currentVocFile = Audio::makeVOCStream(vocStream);
}
- if (_currentVocFile)
+ if (_currentVocFile) {
+ _mixer->stopHandle(_vocHandle);
_mixer->playInputStream(Audio::Mixer::kSpeechSoundType, &_vocHandle, _currentVocFile);
+ }
delete [] fileData;
fileSize = 0;
}