From b47725540f53694ce8d261a2b7b132aff6c6eb74 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Thu, 7 Jan 2010 17:04:32 +0000 Subject: Cleanup. svn-id: r47133 --- sound/mixer.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sound/mixer.cpp') 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); -- cgit v1.2.3