Modified sndfile_interface to be an object method.