aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2019-11-06 17:32:11 +0100
committerEugene Sandulenko2019-11-13 22:07:08 +0100
commit7b05a02a97b4614b0f8eac9ff056dc9cb1045f86 (patch)
treee1f3e4053490c95deafe859c134bff1f871cea22 /engines
parentf6da6210081d2f272c37fb1bda13931345f27967 (diff)
downloadscummvm-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.cpp7
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) {