does libsndfile ever clear the error flag on a file?
E.g. if there is
a decoding error in a FLAC, and I sf_seek() back to the beginning,
will sf_read_() work "normally" again?
Maybe not on FLAC. I would suggest that you write a small
standalone test program to test this and if you don't
With a small standalone broken FLAC file :) FLAC was just an example.