23bool MxInitialize(uint rate);
24void MxMixSamples(
void *buffer, uint samples);
27void MxSetChannelRawSrc(
MixerChannel *mc,
const std::shared_ptr<std::vector<uint8_t>> &mem, uint rate,
bool is16bit);
34void SetEffectVolume(uint8_t volume);
void MxCloseAllChannels()
Close all mixer channels.
void(* MxStreamCallback)(int16_t *buffer, size_t samples)
Type of callback functions for supplying PCM music.
uint32_t MxSetMusicSource(MxStreamCallback music_callback)
Set source of PCM music.
void MxSetChannelVolume(MixerChannel *mc, uint volume, float pan)
Set volume and pan parameters for a sound.