aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r--sound/mixer.cpp43
1 files changed, 0 insertions, 43 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index 84a3949656..16a7dcf024 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -264,49 +264,6 @@ void MixerImpl::playInputStream(
insertChannel(handle, chan);
}
-void Mixer::playInputStreamLooping(
- SoundType type,
- SoundHandle *handle,
- RewindableAudioStream *input,
- uint loopCount,
- int id, byte volume, int8 balance,
- bool autofreeStream,
- 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);
-
- playInputStream(type, handle, loopingStream, id, volume, balance, true, permanent, reverseStereo);
-}
-
-void Mixer::playInputStreamLooping(
- SoundType type,
- SoundHandle *handle,
- SeekableAudioStream *input,
- uint loopCount,
- Timestamp loopStart, Timestamp loopEnd,
- int id, byte volume, int8 balance,
- bool autofreeStream,
- bool permanent,
- bool reverseStereo) {
-
- if (loopStart >= loopEnd)
- return;
-
- input = new SubSeekableAudioStream(input, loopStart, loopEnd, autofreeStream);
- assert(input);
-
- playInputStreamLooping(type, handle, input, loopCount, id, volume, balance, true, permanent, reverseStereo);
-}
-
void MixerImpl::mixCallback(byte *samples, uint len) {
assert(samples);