1al_create_mixer(3) al_create_mixer(3)
2
3
4
6 al_create_mixer - Allegro 5 API
7
9 #include <allegro5/allegro_audio.h>
10
11 ALLEGRO_MIXER *al_create_mixer(unsigned int freq,
12 ALLEGRO_AUDIO_DEPTH depth, ALLEGRO_CHANNEL_CONF chan_conf)
13
15 Creates a mixer to attach sample instances, audio streams, or other
16 mixers to. It will mix into a buffer at the requested frequency (in
17 Hz) and channel count.
18
19 The only supported audio depths are ALLEGRO_AUDIO_DEPTH_FLOAT32 and AL‐
20 LEGRO_AUDIO_DEPTH_INT16 (not yet complete).
21
22 To actually produce any output, the mixer will have to be attached to a
23 voice.
24
25 Returns true on success, false on error.
26
28 al_destroy_mixer(3), ALLEGRO_AUDIO_DEPTH(3), ALLEGRO_CHANNEL_CONF(3)
29
30
31
32Allegro reference manual al_create_mixer(3)