[Speex-dev] Resampler
Daniel Schmidt
dschmidt2006 at googlemail.com
Thu Mar 15 08:57:42 PDT 2007
Hello Jean-Marc
> > During the tests I encountered another problem. While upsampling a
> > continuous –6 dB sine from 8000 Hz to 11025 Hz I heard that the
> > resampler produces a click every 5 seconds. After changing the output
> > sample rate to 11000 Hz the clicking disappeared.
>
> Hmm, interesting. Do you have the sample? Is that only in fixed-point or
> in floating-point as well?
It was my fault, I'm really sorry! I use the resampler to fill fixed
size output buffers and occasionally there is only 1 sample missing,
so speex_resampler_process_int is called with out_len 1 and in this
condition it sometimes doesn't use any input, resulting in in_len set
to 0 on return. This triggered a bug in my code. Interestingly this
didn't happen with the floating-point version or with 11000 Hz output
sample rate instead of 11025.
Sorry for the confusion.
Daniel
More information about the Speex-dev
mailing list