From: itxEpsilon <carlos@isometrica.net>
To: alsa-devel@alsa-project.org
Subject: Re: How to mix two PCM channels with ALSA
Date: Thu, 6 Dec 2012 16:18:06 +0000 (UTC) [thread overview]
Message-ID: <loom.20121206T171348-66@post.gmane.org> (raw)
In-Reply-To: 50C0AA5F.1040503@ladisch.de
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?
>
> Regards,
> Clemens
>
Hi,
That's no my question, I'd like to know how is performed with the ALSA API.
i.e.
playSound(buffer1);
playSound(buffer2);
is it implicitly mixed when playing two buffers by hardware?
Thanks.
Carlos.
next prev parent reply other threads:[~2012-12-06 16:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-06 12:27 How to mix two PCM channels with ALSA itxEpsilon
2012-12-06 14:23 ` Clemens Ladisch
2012-12-06 16:18 ` itxEpsilon [this message]
2012-12-06 18:05 ` Clemens Ladisch
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20121206T171348-66@post.gmane.org \
--to=carlos@isometrica.net \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.