[alsa-devel] How to mix two PCM channels with ALSA
carlos at isometrica.net
Thu Dec 6 17:18:06 CET 2012
Clemens Ladisch <clemens <at> ladisch.de> writes:
> 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?
That's no my question, I'd like to know how is performed with the ALSA API.
is it implicitly mixed when playing two buffers by hardware?
More information about the Alsa-devel