Is there a reason why `resampler` returns a length? It seems to me that it is the length of the first channel always so it can be computed if necessary (and I doubt it will be the case...)