diff options
author | Max Horn | 2007-03-02 15:26:22 +0000 |
---|---|---|
committer | Max Horn | 2007-03-02 15:26:22 +0000 |
commit | 029b8c43238ab363bcc1c518b3c4de312b240ae1 (patch) | |
tree | a5c171c2759e030b5456a7b367751bf700e7e69e /sound/mixer.cpp | |
parent | d8cf10926b27c86e13755b0132fca4de6931f86c (diff) | |
download | scummvm-rg350-029b8c43238ab363bcc1c518b3c4de312b240ae1.tar.gz scummvm-rg350-029b8c43238ab363bcc1c518b3c4de312b240ae1.tar.bz2 scummvm-rg350-029b8c43238ab363bcc1c518b3c4de312b240ae1.zip |
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
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r-- | sound/mixer.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
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)); |