diff options
author | Travis Howell | 2004-09-13 02:32:13 +0000 |
---|---|---|
committer | Travis Howell | 2004-09-13 02:32:13 +0000 |
commit | fde215e10682b8ded5f08c772cc4ba973cfdd1df (patch) | |
tree | cb0218584965eb58372ee80a12cbb38a2c85c7b8 /scumm | |
parent | 9105a3ae1d57214edd709556dfe293f9b35a21d7 (diff) | |
download | scummvm-rg350-fde215e10682b8ded5f08c772cc4ba973cfdd1df.tar.gz scummvm-rg350-fde215e10682b8ded5f08c772cc4ba973cfdd1df.tar.bz2 scummvm-rg350-fde215e10682b8ded5f08c772cc4ba973cfdd1df.zip |
Sound ids 10000 - 10008 seems to be sound channels in HE70+ games.
svn-id: r15085
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/sound.cpp | 11 |
1 files 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) |