- with-sound-from-file file thunkprocedure
Opens the file named by file for reading (the format is autodetected) and then executes thunk which is a procedure accepting five arguments:
- handle: an opaque pointer to the underlying sndfile object
- format: a three-element list containing the format, the subformat and the endianness of the file
- samplerate: the sample rate of the file
- channels: the number of channels of the file
- frames: the number of audio frames