aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe/sound.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2014-05-03 11:18:47 +0300
committerEugene Sandulenko2014-05-03 11:18:47 +0300
commit2975ef3ebeffe1beb6857c0cc0336d2dd515440d (patch)
treea913a8d55c51da459f509e65ef0cf9c1bae11ab6 /engines/fullpipe/sound.cpp
parent28cb3e82d14a872d8b55bb192211c03af2dac7ed (diff)
downloadscummvm-rg350-2975ef3ebeffe1beb6857c0cc0336d2dd515440d.tar.gz
scummvm-rg350-2975ef3ebeffe1beb6857c0cc0336d2dd515440d.tar.bz2
scummvm-rg350-2975ef3ebeffe1beb6857c0cc0336d2dd515440d.zip
FULLPIPE: Implement FullpipeEngine::stopAllSounds()
Diffstat (limited to 'engines/fullpipe/sound.cpp')
-rw-r--r--engines/fullpipe/sound.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp
index 3c13bad854..06e664faf9 100644
--- a/engines/fullpipe/sound.cpp
+++ b/engines/fullpipe/sound.cpp
@@ -298,8 +298,12 @@ void FullpipeEngine::startSoundStream1(char *trackName) {
}
void FullpipeEngine::stopAllSounds() {
- // TODO: Differences from stopAllSoundStreams()
- _mixer->stopAll();
+ // _mixer->stopAll();
+
+ for (int i = 0; i < _currSoundListCount; i++)
+ for (int j = 0; i < _currSoundList1[i]->getCount(); j++) {
+ _currSoundList1[i]->getSoundByIndex(j)->stop();
+ }
}
void FullpipeEngine::toggleMute() {