aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2016-11-29 10:28:11 +0100
committerEugene Sandulenko2016-11-29 18:45:04 +0100
commitdd4f48f4d79f68e10511a334efd163a8058c0e5a (patch)
tree5835432e471698ebbdbfcbc2eada7f9aaef05ebe /engines
parent6958e38e84041a989a961ad53a25722dc3683d9e (diff)
downloadscummvm-rg350-dd4f48f4d79f68e10511a334efd163a8058c0e5a.tar.gz
scummvm-rg350-dd4f48f4d79f68e10511a334efd163a8058c0e5a.tar.bz2
scummvm-rg350-dd4f48f4d79f68e10511a334efd163a8058c0e5a.zip
FULLPIPE: Unstub StopAllSoundStreams()
Diffstat (limited to 'engines')
-rw-r--r--engines/fullpipe/sound.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp
index cc0bf13b60..504ea0c1ae 100644
--- a/engines/fullpipe/sound.cpp
+++ b/engines/fullpipe/sound.cpp
@@ -386,12 +386,10 @@ void FullpipeEngine::startSoundStream1(const char *trackName) {
}
void FullpipeEngine::stopAllSounds() {
- _mixer->stopHandle(*_soundStream1);
- _mixer->stopHandle(*_soundStream2);
- _mixer->stopHandle(*_soundStream3);
- _mixer->stopHandle(*_soundStream4);
-
- _stream2playing = false;
+ for (int i = 0; i < _currSoundListCount; i++)
+ for (int j = 0; j < _currSoundList1[i]->getCount(); j++) {
+ _currSoundList1[i]->getSoundByIndex(j)->stop();
+ }
}
void FullpipeEngine::toggleMute() {
@@ -522,10 +520,12 @@ void FullpipeEngine::stopSoundStream2() {
}
void FullpipeEngine::stopAllSoundStreams() {
- warning("STUB: stopAllSoundStreams()");
+ _mixer->stopHandle(*_soundStream1);
+ _mixer->stopHandle(*_soundStream2);
+ _mixer->stopHandle(*_soundStream3);
+ _mixer->stopHandle(*_soundStream4);
- // TODO: Differences from stopAllSounds()
- _mixer->stopAll();
+ _stream2playing = false;
}
void FullpipeEngine::stopAllSoundInstances(int id) {