src/io/source_sndfile.c: also check parameters here, synchronise tests