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,
99 bool reverseStereo)
override;
102 void stopID(
int id)
override;
105 void pauseAll(
bool paused)
override;
106 void pauseID(
int id,
bool paused)
override;
144 void insertChannel(
SoundHandle *handle, Channel *chan);
uint32 getChannelRate(SoundHandle handle) override
void resetChannelRate(SoundHandle handle) override
void loopChannel(SoundHandle handle) override
uint8 getChannelFaderR(SoundHandle handle) override
uint getOutputBufSize() const override
void setVolumeForSoundType(SoundType type, int volume) override
bool getOutputStereo() const override
uint getOutputRate() const override
int mixCallback(byte *samples, uint len)
Timestamp getElapsedTime(SoundHandle handle) override
bool isSoundHandleActive(SoundHandle handle) override
Definition: timestamp.h:83
bool isReady() const override
Definition: mixer_intern.h:88
void setChannelRate(SoundHandle handle, uint32 rate) override
void pauseHandle(SoundHandle handle, bool paused) override
byte getChannelVolume(SoundHandle handle) override
Definition: mixer_intern.h:58
bool isSoundIDActive(int id) override
SoundType
Definition: mixer.h:73
void setChannelVolume(SoundHandle handle, byte volume) override
bool isSoundTypeMuted(SoundType type) const override
uint32 getSoundElapsedTime(SoundHandle handle) override
void pauseID(int id, bool paused) override
void playStream(SoundType type, SoundHandle *handle, AudioStream *input, int id, byte volume, int8 balance, DisposeAfterUse::Flag autofreeStream, bool permanent, bool reverseStereo) override
void pauseAll(bool paused) override
void muteSoundType(SoundType type, bool mute) override
Definition: audiostream.h:50
void setChannelFaderR(SoundHandle handle, uint8 scaleR) override
bool hasActiveChannelOfType(SoundType type) override
uint8 getChannelFaderL(SoundHandle handle) override
void stopHandle(SoundHandle handle) override
void setChannelFaderL(SoundHandle handle, uint8 scaleL) override
void stopID(int id) override
int8 getChannelBalance(SoundHandle handle) override
Common::Mutex & mutex() override
Definition: mixer_intern.h:90
void setReady(bool ready)
int getSoundID(SoundHandle handle) override
void setChannelBalance(SoundHandle handle, int8 balance) override
int getVolumeForSoundType(SoundType type) const override