committing a bunch of code that I will probably remove when I figure out how to use libsamplerate properly