22 #ifndef AUDIO_MIXER_INTERN_H 23 #define AUDIO_MIXER_INTERN_H 25 #include "common/scummsys.h" 26 #include "common/mutex.h" 27 #include "audio/mixer.h" 66 const uint _sampleRate;
68 const uint _outBufSize;
72 struct SoundTypeSettings {
79 SoundTypeSettings _soundTypeSettings[4];
80 Channel *_channels[NUM_CHANNELS];
85 MixerImpl(uint sampleRate,
bool stereo =
true, uint outBufSize = 0);
96 int id, byte volume, int8 balance,
97 DisposeAfterUse::Flag autofreeStream,
102 virtual void stopID(
int id);
106 virtual void pauseID(
int id,
bool paused);
140 void insertChannel(
SoundHandle *handle, Channel *chan);
virtual void muteSoundType(SoundType type, bool mute)
virtual void pauseHandle(SoundHandle handle, bool paused)
virtual uint32 getSoundElapsedTime(SoundHandle handle)
virtual Timestamp getElapsedTime(SoundHandle handle)
virtual bool getOutputStereo() const
virtual Common::Mutex & mutex()
Definition: mixer_intern.h:90
virtual uint getOutputBufSize() const
virtual void stopHandle(SoundHandle handle)
int mixCallback(byte *samples, uint len)
virtual void pauseID(int id, bool paused)
virtual bool hasActiveChannelOfType(SoundType type)
Definition: timestamp.h:83
virtual void setChannelBalance(SoundHandle handle, int8 balance)
virtual uint32 getChannelRate(SoundHandle handle)
virtual void setChannelVolume(SoundHandle handle, byte volume)
virtual bool isReady() const
Definition: mixer_intern.h:88
Definition: mixer_intern.h:58
virtual void stopID(int id)
virtual void setChannelRate(SoundHandle handle, uint32 rate)
SoundType
Definition: mixer.h:62
virtual byte getChannelVolume(SoundHandle handle)
virtual void loopChannel(SoundHandle handle)
virtual void playStream(SoundType type, SoundHandle *handle, AudioStream *input, int id, byte volume, int8 balance, DisposeAfterUse::Flag autofreeStream, bool permanent, bool reverseStereo)
Definition: audiostream.h:50
virtual void resetChannelRate(SoundHandle handle)
virtual int getVolumeForSoundType(SoundType type) const
virtual void pauseAll(bool paused)
virtual bool isSoundIDActive(int id)
virtual int getSoundID(SoundHandle handle)
virtual void setVolumeForSoundType(SoundType type, int volume)
virtual int8 getChannelBalance(SoundHandle handle)
void setReady(bool ready)
virtual bool isSoundTypeMuted(SoundType type) const
virtual uint getOutputRate() const
virtual bool isSoundHandleActive(SoundHandle handle)