Hi,
I want to up or downsample a buffer~ destructively. There seems to be no native way. I want it to be always 32000 hz. I want to load soundfiles with any sr and always have them converted to 32000hz.
I don't want to use an external tool like sox. For what I have read, it's applying a steep lowpass at 16000hz and dropping or adding samples. But how to do that in a calculation with the floats of a buffer?
For example 44,1khz to 32khz. How to drop every 1,378125 th sample?
Any example is helpful. I can translate that for my needs.
Thanks,
O.