aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/sound_digital.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-05 17:56:39 +0000
committerJohannes Schickel2008-05-05 17:56:39 +0000
commitc26e62e288f7454d47e201216c1cd98ee4cb3607 (patch)
tree5f6b5a1bac4ea7511cae1e290fe4f79afa178003 /engines/kyra/sound_digital.cpp
parentf42d222069d7ae130c85201e895e7f23d27c88d0 (diff)
downloadscummvm-rg350-c26e62e288f7454d47e201216c1cd98ee4cb3607.tar.gz
scummvm-rg350-c26e62e288f7454d47e201216c1cd98ee4cb3607.tar.bz2
scummvm-rg350-c26e62e288f7454d47e201216c1cd98ee4cb3607.zip
- Implemented Kyra3 audio options menu, Helium mode still missing.
- Fixed unitialized variable svn-id: r31881
Diffstat (limited to 'engines/kyra/sound_digital.cpp')
-rw-r--r--engines/kyra/sound_digital.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/kyra/sound_digital.cpp b/engines/kyra/sound_digital.cpp
index 3a4eeba0f5..f8c6fbdb04 100644
--- a/engines/kyra/sound_digital.cpp
+++ b/engines/kyra/sound_digital.cpp
@@ -403,6 +403,9 @@ bool SoundDigital::isPlaying(int channel) {
}
void SoundDigital::stopSound(int channel) {
+ if (channel == -1)
+ return;
+
assert(channel >= 0 && channel < ARRAYSIZE(_sounds));
_mixer->stopHandle(_sounds[channel].handle);
_sounds[channel].stream = 0;