aboutsummaryrefslogtreecommitdiff
path: root/engines/hdb/sound.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/hdb/sound.cpp')
-rw-r--r--engines/hdb/sound.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/hdb/sound.cpp b/engines/hdb/sound.cpp
index b41622b39e..28cee431ae 100644
--- a/engines/hdb/sound.cpp
+++ b/engines/hdb/sound.cpp
@@ -1626,14 +1626,14 @@ void Sound::playVoice(int index, int actor) {
if (!_voicesOn || g_hdb->isPPC())
return;
- // make sure we aren't playing a line more than once this time (only on CHANNEL 0)
- if (!actor && _voicePlayed[index - FIRST_VOICE])
- return;
-
// is voice channel already active? if so, shut 'er down (automagically called StopVoice via callback)
if (_voices[actor].active)
g_hdb->_mixer->stopHandle(*_voices[actor].handle);
+ // make sure we aren't playing a line more than once this time (only on CHANNEL 0)
+ if (!actor && _voicePlayed[index - FIRST_VOICE])
+ return;
+
Common::SeekableReadStream *stream = nullptr;
if (g_hdb->getPlatform() == Common::kPlatformLinux) {
Common::String updatedName(soundList[index].name);