diff options
author | Eugene Sandulenko | 2019-11-06 17:32:11 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2019-11-13 22:07:08 +0100 |
commit | 7b05a02a97b4614b0f8eac9ff056dc9cb1045f86 (patch) | |
tree | e1f3e4053490c95deafe859c134bff1f871cea22 /engines | |
parent | f6da6210081d2f272c37fb1bda13931345f27967 (diff) | |
download | scummvm-rg350-7b05a02a97b4614b0f8eac9ff056dc9cb1045f86.tar.gz scummvm-rg350-7b05a02a97b4614b0f8eac9ff056dc9cb1045f86.tar.bz2 scummvm-rg350-7b05a02a97b4614b0f8eac9ff056dc9cb1045f86.zip |
GRIFFON: Fixed music stopping
Diffstat (limited to 'engines')
-rw-r--r-- | engines/griffon/sound.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/griffon/sound.cpp b/engines/griffon/sound.cpp index e3f2230b43..a8c6c0482d 100644 --- a/engines/griffon/sound.cpp +++ b/engines/griffon/sound.cpp @@ -85,7 +85,12 @@ void GriffonEngine::pauseSoundChannel(int channel) { } void GriffonEngine::haltSoundChannel(int channel) { - _mixer->stopHandle(_handles[channel]); + if (channel == -1) { + for (int i = 0; i < kSoundHandles; i++) + _mixer->stopHandle(_handles[i]); + } else { + _mixer->stopHandle(_handles[channel]); + } } void GriffonEngine::resumeSoundChannel(int channel) { |