src/io/source_sndfile.{c,h}: add get_samplerate
src/io/source_sndfile.c: automagically set samplerate to input file if 0 is requested