I'm trying to convert a wav file from 48000 hz to 16000 hz.
I have all of the samples of the 48khz wav file inside of a float[] and I'm looking for a formula to turn these samples into a 16000 hz wav file.
I have searched google for that and every link i found was related to NAudio or other Libraries. I want to do that in plain C# as I'm doing this in unity. (Btw i also have access to the unity classes, like AudioClip if that helps)
any help would be greatly apapreciated