diff options
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r-- | sound/mixer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp index f9f0e32316..5face1f8a9 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -367,10 +367,10 @@ bool SoundMixer::isSoundIDActive(int id) { return false; } -int SoundMixer::getActiveChannelSoundID(SoundHandle handle) { +int SoundMixer::getSoundID(SoundHandle handle) { Common::StackLock lock(_mutex); const int index = handle._val % NUM_CHANNELS; - if (_channels[index]) + if (_channels[index] && _channels[index]->_handle._val == handle._val) return _channels[index]->getId(); return 0; } |