.\" Automatically generated by Pandoc 3.1.6.2 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "ALLEGRO_MIXER" "3" "" "Allegro reference manual" "" .hy .SH NAME .PP ALLEGRO_MIXER - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include typedef struct ALLEGRO_MIXER ALLEGRO_MIXER; \f[R] .fi .SH DESCRIPTION .PP A mixer mixes together attached streams into a single buffer. In the process, it converts channel configurations, sample frequencies and audio depths of the attached sample instances and audio streams accordingly. You can control the quality of this conversion using ALLEGRO_MIXER_QUALITY. .PP When going from mono to stereo (and above), the mixer reduces the volume of both channels by \f[V]sqrt(2)\f[R]. When going from stereo (and above) to mono, the mixer reduces the volume of the left and right channels by \f[V]sqrt(2)\f[R] before adding them to the center channel (if present).