GenericInterpolator produces artifacts when crossing 1.0 ratio

I might have discovered a bug/limitation in GenericInterpolator:

I’m sweeping the playback speed of a test tone (just a sampled sine wave), and when I cross over the 1.0 ratio there’s a slight click. It doesn’t matter which interpolator I use.

In GenericInterpolator::interpolate(), there are separate execution branches for speedRatio < 1.0 and >= 1.0, so I’m suspecting there’s some difference between those that might cause the discontinuity? But I haven’t found any obvious problem in the code yet.

Nevermind, I ended up writing my own linear interpolator instead.