From 029b8c43238ab363bcc1c518b3c4de312b240ae1 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 2 Mar 2007 15:26:22 +0000 Subject: Changed the order of the parameters of makeLinearInputStream to resemble Mixer::playRaw; also made makeLinearInputStream honor FLAG_LOOP (and for this, changed its loop related params slightly) svn-id: r25926 --- sound/mixer.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'sound/mixer.cpp') diff --git a/sound/mixer.cpp b/sound/mixer.cpp index b4b9e1134e..0b9ffe3abe 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -157,17 +157,7 @@ void Mixer::playRaw( uint32 loopStart, uint32 loopEnd) { // Create the input stream - AudioStream *input; - if (flags & Mixer::FLAG_LOOP) { - if (loopEnd == 0) { - input = makeLinearInputStream(rate, flags, (byte *)sound, size, 0, size); - } else { - assert(loopStart < loopEnd && loopEnd <= size); - input = makeLinearInputStream(rate, flags, (byte *)sound, size, loopStart, loopEnd - loopStart); - } - } else { - input = makeLinearInputStream(rate, flags, (byte *)sound, size, 0, 0); - } + AudioStream *input = makeLinearInputStream((byte *)sound, size, rate, flags, loopStart, loopEnd); // Play it playInputStream(type, handle, input, id, volume, balance, true, false, (flags & Mixer::FLAG_REVERSE_STEREO)); -- cgit v1.2.3