Hi, On Wed, Mar 3, 2010 at 11:38 AM, Igor R. <[email protected]> wrote: > audio_resample(resampleCtx, (short *)pcm2, (short *)pcm, cb / 4); > I assumed that "cb" is in bytes, and every sample is 4 bytes - thus passed > cb/4 > to audio_resample(), and this resulted in crackles/hum. > If I change it to cb/2 -- everything sounds ok.
Right, it's "number of samples", so in this case bytes / sizeof(float). Ronald _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
