Re: [AD] new resampling

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sun, 22 Apr 2012 08:52:17 +1000, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> Elias Pschernig <info@xxxxxxxxxx> wrote:
> >Something else I saw is with alsa I get very small buffers, alternating
> >between 32 and 12 samples. However the linear interpolation right now
> >will not go over a buffer boundary. So there's a step every 32/12
> >samples.

The problem was only with interpolating over audio stream buffer
fragment boundaries, as far as I can see (but the code is rather
confusing).  The ALSA buffer size and the audio stream fragment buffer
sizes aren't related.

> >I obvously won't hear a difference - but might be worth fixing
> >(although it doesn't look easy to fix, probably would need to delay all
> >audio by one sample and then somehow keep the very last sample of each
> >buffer around for the next buffer to interpolate the first sample
> >against).
> 
> Yes. Turns out to be not too hard, fortunately.

It should be fixed now.  I wouldn't mind seeing a new frequency plot :)

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/