libsamplerate
libsamplerate copied to clipboard
src_simple with sndfile
FYI - I've been having some trouble trying to figure out why my code would compile but produce silent WAV files. Turns out it was completely basic user error dividing two integer values:
sf_data.src_ratio = new_samplerate/old_samplerate;
Which essentially produced an integer value and messed up my src ratio. (float)new_samplerate/old_samplerate was the solution.
This can be deleted or left in case somebody else bumps into this.
Hmm, ok : 😊
Maybe add this to the documentation perhaps ?