On Thu, 02.10.08 15:55, Baek Chang (baeksan at ccrma.stanford.edu) wrote: > What is returned in the next input buffer, when the resampled output buffer > is under by a sample or two? > > For example: > > Input buffer size is 100 samples. You are upsampling by a factor of two, so > the output buffer size should be 200 samples. > So if you a doing some processing, and the number of returned samples for > the output buffer is say 199 or 198 samples. > Does the next input buffer account for the missed sample? It seems like the > next input buffer is returning too many previous samples, but I'm not sure > if that is the case. Yes, the next buffer might return the missing samples. The resulting buffer might be larger than 200 samples in this case. Lennart -- Lennart Poettering Red Hat, Inc. lennart [at] poettering [dot] net ICQ# 11060553 http://0pointer.net/lennart/ GnuPG 0x1A015CC4