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

Clemens Ladisch clemens at ladisch.de
Thu Dec 6 15:23:27 CET 2012

itxEpsilon wrote:
> I'm trying to write a simple application
> for mixing two PCM sound channels in
> C++. Could anyone provide me a
> quick example about how to implement
> this operation?

  outputSample[i] = inputChannel1[i] + inputChannel2[i];

What does this have to do with ALSA?


More information about the Alsa-devel mailing list