# HG changeset patch # User philipjsg # Date 1020907429 0 # Node ID 3007abcbc510ad122ebdc59d876f528abbecaf6f # Parent 19b6a1fa6f6d02b0f890f845d038c8aa6f3196a8 * Fix a problem with the first sample when down sampling. * Note that this code needs to be fixed -- the rate conversion from 48000->44100 sounds horrible! diff -r 19b6a1fa6f6d -r 3007abcbc510 resample.c --- a/resample.c Thu May 09 01:22:51 2002 +0000 +++ b/resample.c Thu May 09 01:23:49 2002 +0000 @@ -48,7 +48,7 @@ if (s->iratio == 0) s->iratio = 1; s->incr = (int)((ratio / s->iratio) * FRAC); - s->frac = 0; + s->frac = FRAC; s->last_sample = 0; s->icount = s->iratio; s->isum = 0;