From 557bb394de6619dd1f360b72333fd2ec7b3defab Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 19 Jan 2010 00:56:29 +0000 Subject: Get rid of Mixer::FLAG_AUTOFREE. Also fix several recently introduced new/delete vs. malloc/free mismatches. svn-id: r47369 --- sound/mixer.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sound/mixer.h') diff --git a/sound/mixer.h b/sound/mixer.h index 23ad29082d..0055e51d87 100644 --- a/sound/mixer.h +++ b/sound/mixer.h @@ -88,9 +88,6 @@ public: /** reverse the left and right stereo channel */ FLAG_REVERSE_STEREO = 1 << 4, - /** sound buffer is freed automagically at the end of playing */ - FLAG_AUTOFREE = 1 << 5, - /** loop the audio */ FLAG_LOOP = 1 << 6 }; @@ -137,7 +134,9 @@ public: virtual void playRaw( SoundType type, SoundHandle *handle, - void *sound, uint32 size, uint rate, byte flags, + void *sound, uint32 size, + DisposeAfterUse::Flag autofreeBuffer, + uint rate, byte flags, int id = -1, byte volume = kMaxChannelVolume, int8 balance = 0, uint32 loopStart = 0, uint32 loopEnd = 0) = 0; -- cgit v1.2.3