Re: [linux-audio-dev] Mixing signals

From: Viceic Predrag <viceic@email-addr-hidden>
Date: Mon May 23 2005 - 13:18:58 EEST

> Why? What is this supposed to achieve and what's wrong with:
>
> *p_output = *p_A + *p_B;

Well, you're right. But if you want to finish with signal thats limited to
[-1:1] you got to have some normalization somewhere..Or I'm totaly wrong?
Predrag

Le Lundi, 23 Mai 2005 11.37, Erik de Castro Lopo a écrit :
> Richard Spindler wrote:
> > On 5/23/05, Viceic Predrag <viceic@email-addr-hidden> 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
Received on Mon May 23 16:15:16 2005

This archive was generated by hypermail 2.1.8 : Mon May 23 2005 - 16:15:17 EEST