diff options
Diffstat (limited to 'sound/mixer.h')
-rw-r--r-- | sound/mixer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sound/mixer.h b/sound/mixer.h index 130f4ec0d2..cb5a4f220c 100644 --- a/sound/mixer.h +++ b/sound/mixer.h @@ -40,12 +40,15 @@ typedef uint32 PlayingSoundHandle; class File; +class SoundMixer; class Channel { +protected: + SoundMixer *_mixer; public: bool _toBeDestroyed; int _id; - Channel() : _id(-1) {} + Channel() : _mixer(0), _toBeDestroyed(false), _id(-1) {} virtual void mix(int16 *data, uint len) = 0; void destroy() { _toBeDestroyed = true; |