25 #include "common/mutex.h" 26 #include "common/types.h" 27 #include "common/noncopyable.h" 52 uint32 _val = 0xffffffff;
82 kMaxChannelVolume = 255,
104 virtual bool isReady()
const = 0;
130 virtual void playStream(
135 byte volume = kMaxChannelVolume,
137 DisposeAfterUse::Flag autofreeStream = DisposeAfterUse::YES,
138 bool permanent =
false,
139 bool reverseStereo =
false) = 0;
144 virtual void stopAll() = 0;
151 virtual void stopID(
int id) = 0;
168 virtual void pauseAll(
bool paused) = 0;
176 virtual void pauseID(
int id,
bool paused) = 0;
184 virtual void pauseHandle(
SoundHandle handle,
bool paused) = 0;
195 virtual bool isSoundIDActive(
int id) = 0;
213 virtual bool isSoundHandleActive(
SoundHandle handle) = 0;
222 virtual void muteSoundType(
SoundType type,
bool mute) = 0;
229 virtual bool isSoundTypeMuted(
SoundType type)
const = 0;
237 virtual void setChannelVolume(
SoundHandle handle, byte volume) = 0;
246 virtual byte getChannelVolume(
SoundHandle handle) = 0;
255 virtual void setChannelBalance(
SoundHandle handle, int8 balance) = 0;
264 virtual int8 getChannelBalance(
SoundHandle handle) = 0;
272 virtual void setChannelFaderL(
SoundHandle handle, uint8 faderL) = 0;
281 virtual uint8 getChannelFaderL(
SoundHandle handle) = 0;
289 virtual void setChannelFaderR(
SoundHandle handle, uint8 faderR) = 0;
298 virtual uint8 getChannelFaderR(
SoundHandle handle) = 0;
306 virtual void setChannelRate(
SoundHandle handle, uint32 rate) = 0;
315 virtual uint32 getChannelRate(
SoundHandle handle) = 0;
323 virtual void resetChannelRate(
SoundHandle handle) = 0;
328 virtual uint32 getSoundElapsedTime(
SoundHandle handle) = 0;
350 virtual bool hasActiveChannelOfType(
SoundType type) = 0;
358 virtual void setVolumeForSoundType(
SoundType type,
int volume) = 0;
367 virtual int getVolumeForSoundType(
SoundType type)
const = 0;
374 virtual uint getOutputRate()
const = 0;
381 virtual bool getOutputStereo()
const = 0;
392 virtual uint getOutputBufSize()
const = 0;
bool operator!=(const SoundHandle &h) const
Definition: mixer.h:63
Definition: timestamp.h:83
Definition: noncopyable.h:39
Definition: mixer_intern.h:58
SoundType
Definition: mixer.h:73
bool operator==(const SoundHandle &h) const
Definition: mixer.h:58
Definition: audiostream.h:50