aboutsummaryrefslogtreecommitdiff
path: root/sound/mixer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r--sound/mixer.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index a3aaa19e8f..7a5be35fbb 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -221,12 +221,14 @@ void MixerImpl::playRaw(
SoundType type,
SoundHandle *handle,
void *sound,
- uint32 size, uint rate, byte flags,
+ uint32 size,
+ DisposeAfterUse::Flag autofreeBuffer,
+ uint rate, byte flags,
int id, byte volume, int8 balance,
uint32 loopStart, uint32 loopEnd) {
// Create the input stream
- AudioStream *input = makeRawMemoryStream((byte *)sound, size, rate, flags, loopStart, loopEnd);
+ AudioStream *input = makeRawMemoryStream((byte *)sound, size, autofreeBuffer, rate, flags, loopStart, loopEnd);
// Play it
playInputStream(type, handle, input, id, volume, balance, DisposeAfterUse::YES, false, ((flags & Mixer::FLAG_REVERSE_STEREO) != 0));