From fde215e10682b8ded5f08c772cc4ba973cfdd1df Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Mon, 13 Sep 2004 02:32:13 +0000 Subject: Sound ids 10000 - 10008 seems to be sound channels in HE70+ games. svn-id: r15085 --- scumm/sound.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/scumm/sound.cpp b/scumm/sound.cpp index da49fdbc62..61bfa3c2c3 100644 --- a/scumm/sound.cpp +++ b/scumm/sound.cpp @@ -757,9 +757,8 @@ int Sound::isSoundRunning(int sound) const { return pollCD(); if (_vm->_features & GF_HUMONGOUS) { - if (sound == 10002) { - return !_talkChannelHandle.isActive(); - } else if (sound == -2 || sound == 10001) { + if (sound == -2 || sound >= 10001) { + // Maybe checks sound channel? return !isSfxFinished(); } else if (sound == -1 || sound == 10000 || sound == _currentMusic) { // getSoundStatus(), with a -1, will return the @@ -840,10 +839,8 @@ void Sound::stopSound(int sound) { int i; if (_vm->_features & GF_HUMONGOUS) { - if (sound == 10002) { - _vm->stopTalk(); - } else if (sound == -2 || sound == 10001) { - // Stop current sfx + if (sound == -2 || sound >= 10001) { + // Maybe stops sound channel? } else if (sound == -1 || sound == 10000) { // Stop current music if (_vm->_heversion >= 70 || _currentMusic) -- cgit v1.2.3