[linux-audio-dev] Mixing signals

Erik de Castro Lopo erikd-lad at mega-nerd.com
Mon May 23 09:37:05 UTC 2005


Richard Spindler wrote:

> On 5/23/05, Viceic Predrag <viceic at net2000.ch> wrote:
> > Could someone please help with this apparently simple problem?
> 
> I'm not a "professional" either, but this is what I do:

<snip>

>                 if (*p_A<0 && *p_B<0) {
>                         *p_output =(*p_A+1)*(*p_B+1)-1;
>                 } else {
>                         *p_output =2*(*p_A+*p_B+2)-(*p_A+1)*(*p_B+1)-3;
>                 }

Why? What is this supposed to achieve and what's wrong with:

	*p_output = *p_A + *p_B;

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo  nospam at mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
"Using Java as a general purpose application development language
is like going big game hunting armed with Nerf weapons."
-- Author Unknown



More information about the Linux-audio-dev mailing list