libsamplerate icon indicating copy to clipboard operation
libsamplerate copied to clipboard

src_simple with sndfile

Open bleachcult opened this issue 2 years ago • 2 comments

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.

bleachcult avatar Nov 24 '22 12:11 bleachcult

Hmm, ok : 😊

evpobr avatar Nov 26 '22 05:11 evpobr

Maybe add this to the documentation perhaps ?

luzpaz avatar Nov 02 '23 12:11 luzpaz