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:
- 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
- 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
Other recent discussions:
- Sample Instances and Mixers
- Allegro video addon
- (A5) random crash on al_detach_voice()
- [Allegro 5] Multiple Audio Questions
- Looping MOD music
- [5.0.5] Crash when trying to play the second instance of sound.
- Creating Voice, Mixer and Sample Instance
- [A5] Problem with streaming sound
- Multiple audio stream causes static?
- [a5] Memory Management -Bitmaps part 2