diff options
Diffstat (limited to 'sound/mixer.cpp')
-rw-r--r-- | sound/mixer.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 21439a648e..a46ad18db7 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -44,7 +44,6 @@ protected: RateConverter *_converter; AudioInputStream *_input; byte _volume; - byte _flags; int8 _pan; bool _paused; @@ -511,7 +510,6 @@ ChannelRaw::ChannelRaw(SoundMixer *mixer, PlayingSoundHandle *handle, void *soun : Channel(mixer, handle) { _id = id; _ptr = (byte *)sound; - _flags = flags; _volume = volume; _pan = pan; @@ -535,10 +533,7 @@ ChannelRaw::ChannelRaw(SoundMixer *mixer, PlayingSoundHandle *handle, void *soun } ChannelRaw::~ChannelRaw() { - if (_flags & SoundMixer::FLAG_AUTOFREE) - free(_ptr); - else if (_flags & SoundMixer::FLAG_AUTODELETE) - delete _ptr; + free(_ptr); } ChannelStream::ChannelStream(SoundMixer *mixer, PlayingSoundHandle *handle, |