aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/sound.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp
index c337209cf6..3c13bad854 100644
--- a/engines/fullpipe/sound.cpp
+++ b/engines/fullpipe/sound.cpp
@@ -429,14 +429,11 @@ void FullpipeEngine::stopAllSoundStreams() {
}
void FullpipeEngine::stopAllSoundInstances(int id) {
- SoundList *soundList = _currentScene->_soundList;
-
- for (int i = 0; i < soundList->getCount(); i++) {
- Sound *sound = soundList->getSoundByIndex(i);
+ for (int i = 0; i < _currSoundListCount; i++) {
+ Sound *sound = _currSoundList1[i]->getSoundItemById(id);
- if (sound->getId() == id) {
- _mixer->stopHandle(sound->getHandle());
- }
+ if (sound)
+ sound->stop();
}
}