The current pcm_rate.c tends to insert zero samples in the stream. E.g. Downsampling from 48000 -> 16000 Starts with a block of 2048, and has to create 682 samples. The current code sometimes only produces 681 samples, leaving the last one zero. The attached patch fixes this problem. James