I noticed that when using small buffers and rapidly changing ratio, the resampler tries to access samples outside of the old buffer buf1, causing a crash.
My solution is to simply use the oldest sample we have. Not sure if this is good enough, but works for me.
I noticed that when using small buffers and rapidly changing ratio, the resampler tries to access samples outside of the old buffer
buf1
, causing a crash.My solution is to simply use the oldest sample we have. Not sure if this is good enough, but works for me.