[Speex-dev] Size of each block in a circular buffer and the samplerate

John Miles jmiles at pop.net
Sat May 20 16:52:16 PDT 2006


Basically, yeah, but you want to add your samples as signed 32-bit ints, and
do the clamping (to +/- 32K) after all of the additions have taken place.

-- john

> -----Original Message-----
> From: speex-dev-bounces at xiph.org [mailto:speex-dev-bounces at xiph.org]On
> Behalf Of Kevin Jenkins
> Sent: Saturday, May 20, 2006 3:47 PM
> To: Jean-Marc Valin
> Cc: speex-dev at xiph.org
> Subject: Re: [Speex-dev] Size of each block in a circular buffer and the
> samplerate
>
>
> Thanks!  I hope this isn't a stupid question but if I want to play two
> or more voices at the same time, I just add the values of the samples
> right?  If I'm using an unsigned short, should I then clamp the values
> to 65535?
>
>



More information about the Speex-dev mailing list