diff options
Diffstat (limited to 'engines/sword2/sound.cpp')
-rw-r--r-- | engines/sword2/sound.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/sword2/sound.cpp b/engines/sword2/sound.cpp index 3d468ebba3..03352a2166 100644 --- a/engines/sword2/sound.cpp +++ b/engines/sword2/sound.cpp @@ -340,10 +340,7 @@ int32 Sound::playFx(Audio::SoundHandle *handle, byte *data, uint32 len, uint8 vo assert(input); - if (loop) - _vm->_mixer->playInputStreamLooping(soundType, handle, input, 0, -1, vol, pan, true, false, isReverseStereo()); - else - _vm->_mixer->playInputStream(soundType, handle, input, -1, vol, pan, true, false, isReverseStereo()); + _vm->_mixer->playInputStreamLooping(soundType, handle, input, loop ? 0 : 1, -1, vol, pan, true, false, isReverseStereo()); return RD_OK; } |