https://github.com/libsndfile/libsamplerate