Simplify resampler.c