[alsa-devel] How to mix two PCM channels with ALSA

Clemens Ladisch clemens at ladisch.de
Thu Dec 6 19:05:27 CET 2012


itxEpsilon wrote:
> I'd like to know how is performed with the ALSA API.
>
> playSound(buffer1);
> playSound(buffer2);
>
> is it implicitly mixed when playing two buffers by hardware?

Yes, if the hardware actually support this (nowadays, none does), or if
ALSA is configured to use software mixing through dmix or PulseAudio
(which are enabled by default in most distributions).


Regards,
Clemens


More information about the Alsa-devel mailing list