aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-07 17:04:32 +0000
committerJohannes Schickel2010-01-07 17:04:32 +0000
commitb47725540f53694ce8d261a2b7b132aff6c6eb74 (patch)
tree2c84ad5c91bc360bcf26f90bed37c37b993d6461 /sound/mixer.cpp
parenta597e5fef93523436e60eca18997fb5ca5196345 (diff)
downloadscummvm-rg350-b47725540f53694ce8d261a2b7b132aff6c6eb74.tar.gz
scummvm-rg350-b47725540f53694ce8d261a2b7b132aff6c6eb74.tar.bz2
scummvm-rg350-b47725540f53694ce8d261a2b7b132aff6c6eb74.zip
Cleanup.
svn-id: r47133
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r--sound/mixer.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index a59768b189..84a3949656 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -274,6 +274,13 @@ void Mixer::playInputStreamLooping(
bool permanent,
bool reverseStereo) {
+ // Just in case the user wants the stream just looped once, we will take care of that with the normal
+ // playInputStream method
+ if (loopCount == 1) {
+ playInputStream(type, handle, input, id, volume, balance, autofreeStream, permanent, reverseStereo);
+ return;
+ }
+
LoopingAudioStream *loopingStream = new LoopingAudioStream(input, loopCount, autofreeStream);
assert(loopingStream);