al_create_mixer
ALLEGRO_MIXER *al_create_mixer(unsigned int freq,
ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)
Introduced in 5.0.0
Creates a mixer stream, to attach sample streams or other mixers to. It will mix into a buffer at the requested frequency and channel count.
The only supported audio depths are ALLEGRO_AUDIO_DEPTH_FLOAT32 and ALLEGRO_AUDIO_DEPTH_INT16 (not yet complete).
Returns true on success, false on error.
See also: al_destroy_mixer
Examples: ex_acodec, ex_acodec_multi, ex_mixer_chain, ex_mixer_pp, ex_stream_file
Most helpful discussions:
- Allegro 5.2.8
- al_attach_mixer_to_voice failure
- Audio Stream: Seeking doesn't work
- Audio waveform with unexpected frequency behavior
- Calling al_install_audio from a DLL?
- Audio seems overly complicated :(
- How to play video in allegro 5
- Font loading crashing with Allegro 5.2
- Delay when playing a sound effect using "al_play_sample"
- [A4/A5] Homemade Audio Primer
Other recent discussions:
- SpeedHack 2014 is this weekend!
- Streaming Multiple Audio Files At Once
- [A5.0.10] - High CPU usage after al_attach_mixer_to_voice
- Possible inconsistency in the behavior of al_set_sample_instance_playing() ?
- Possible thread deadlock/hang in al_detach_voice() ?
- [A5] Repeating audio samples
- Sample Instances and Mixers
- Allegro video addon
- (A5) random crash on al_detach_voice()
- [Allegro 5] Multiple Audio Questions