libsndfile / libsamplerate

An audio Sample Rate Conversion library
http://libsndfile.github.io/libsamplerate/
BSD 2-Clause "Simplified" License
600 stars 167 forks source link

src_simple with sndfile #181

Open bleachcult opened 1 year ago

bleachcult commented 1 year ago

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.

evpobr commented 1 year ago

Hmm, ok : 😊

luzpaz commented 10 months ago

Maybe add this to the documentation perhaps ?