25 #include "common/mutex.h" 26 #include "common/types.h" 27 #include "common/noncopyable.h" 52 uint32 _val = 0xffffffff;
71 kMaxChannelVolume = 255,
93 virtual bool isReady()
const = 0;
119 virtual void playStream(
124 byte volume = kMaxChannelVolume,
126 DisposeAfterUse::Flag autofreeStream = DisposeAfterUse::YES,
127 bool permanent =
false,
128 bool reverseStereo =
false) = 0;
133 virtual void stopAll() = 0;
140 virtual void stopID(
int id) = 0;
157 virtual void pauseAll(
bool paused) = 0;
165 virtual void pauseID(
int id,
bool paused) = 0;
173 virtual void pauseHandle(
SoundHandle handle,
bool paused) = 0;
184 virtual bool isSoundIDActive(
int id) = 0;
202 virtual bool isSoundHandleActive(
SoundHandle handle) = 0;
211 virtual void muteSoundType(
SoundType type,
bool mute) = 0;
218 virtual bool isSoundTypeMuted(
SoundType type)
const = 0;
226 virtual void setChannelVolume(
SoundHandle handle, byte volume) = 0;
235 virtual byte getChannelVolume(
SoundHandle handle) = 0;
244 virtual void setChannelBalance(
SoundHandle handle, int8 balance) = 0;
253 virtual int8 getChannelBalance(
SoundHandle handle) = 0;
261 virtual void setChannelRate(
SoundHandle handle, uint32 rate) = 0;
270 virtual uint32 getChannelRate(
SoundHandle handle) = 0;
278 virtual void resetChannelRate(
SoundHandle handle) = 0;
283 virtual uint32 getSoundElapsedTime(
SoundHandle handle) = 0;
305 virtual bool hasActiveChannelOfType(
SoundType type) = 0;
313 virtual void setVolumeForSoundType(
SoundType type,
int volume) = 0;
322 virtual int getVolumeForSoundType(
SoundType type)
const = 0;
329 virtual uint getOutputRate()
const = 0;
336 virtual bool getOutputStereo()
const = 0;
347 virtual uint getOutputBufSize()
const = 0;
Definition: timestamp.h:83
Definition: noncopyable.h:39
Definition: mixer_intern.h:58
SoundType
Definition: mixer.h:62
Definition: audiostream.h:50