Re: LPCM Downmix Algorithm problem
Re: LPCM Downmix Algorithm problem
- Subject: Re: LPCM Downmix Algorithm problem
- From: Bob Ingraham <email@hidden>
- Date: Sat, 14 Aug 2010 20:48:53 -0600
Ok, so one last time, because code is fairly simple, like my brain:
To mix two 16-bit-signed samples:
MixedSample = Sample1 + Sample2 - (Sample1 * Sample2);
That's it? I don't have to apply and clamping or range checking or envelope manipulation or FFT conversion to the frequency domain or something like that?
I read two single-channel LPCM sources, and for each sample from each source perform the above equation and I should expect to hear a crystal-clear, non-static combo of both sounds?
Please understandI'm not trying to be sarcastic, I just want to make sure I fully understand that this is all that is needed to down-mix while I go stare at my 20 lines of down-mix code to see what I've missed.
Thanks for the patient answers.
Bob
On Sat, Aug 14, 2010 at 8:06 PM, Paul Davis
<email@hidden> wrote:
On Sat, Aug 14, 2010 at 9:55 PM, Bob Ingraham <
email@hidden> wrote:
> Thanks for the reply.
>
> I implemented this algorithm but it resulted in generating what sounded like
> all static with discernible audio from the original source.
>
> I also tried looking at the downmix source from Audacity, but it just seem
> to add samples (with a gain multiplier.) So, not much help there.
>
> Surely, LPCM down-mixing isn't that complicated, is it?
nope. if you got static, you made a mistake in your code. its that simple.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden