Rewrite the linear sample rate conversion algorithm to make it less hacky and to support arbitrarly big ratios