1ALLEGRO_MIXER(3) ALLEGRO_MIXER(3)
2
3
4
6 ALLEGRO_MIXER - Allegro 5 API
7
9 #include <allegro5/allegro_audio.h>
10
11 typedef struct ALLEGRO_MIXER ALLEGRO_MIXER;
12
14 A mixer mixes together attached streams into a single buffer. In the
15 process, it converts channel configurations, sample frequencies and au‐
16 dio depths of the attached sample instances and audio streams accord‐
17 ingly. You can control the quality of this conversion using ALLE‐
18 GRO_MIXER_QUALITY.
19
20 When going from mono to stereo (and above), the mixer reduces the vol‐
21 ume of both channels by sqrt(2). When going from stereo (and above) to
22 mono, the mixer reduces the volume of the left and right channels by
23 sqrt(2) before adding them to the center channel (if present).
24
25
26
27Allegro reference manual ALLEGRO_MIXER(3)