I’m working on an application which uses the ResamplingAudioSource class. This works as expected but when I change the resampling ratio (ResamplingAudioSource:: setResamplingRatio) I experience audio glitches. As a workaround I divide the audio buffer into small blocks and change the resampling ratio with small steps. However, this leads to a huge CPU increase.
What would be a good solution to fix this issue? Is the LagrangeInterpolator helpful in this case? Or is it recommended that I use an external library for this resampling issue?