- Read and write signed instead of unsigned integer samples and rename
sf_readf_wordXX
andsf_writef_wordXX
tosf_readf_intXX
andsf_writef_intXX
, respectively - Add new supported header and sample formats
- Don't export
Control.Exception.catch
andPrelude
fromSound.File.Sndfile
- Remove lazy read functions
hGetContentChunks
andreadFileChunks
from library interface. Those functions were implemented incorrectly.
- Simplified Buffer API: A single type class, Buffer, is provided for ForeignPtr based I/O. Instances are provided in separate packages, e.g. hsndfile-vector.
- hsndfile has been adapted to compile with GHC 6.10. The only
visible change is in exception handling:
Sound.File.Sndfile.Exception.Exception
is now an instance ofControl.Exception.Exception
- The new generalized functions from
Control.Exception.Exception
are used for throwing and handling exceptions
- Fix exception throwing Exceptions detected in library code are now actually raised. Exception has been factored into Sound.File.Sndfile.Exception and constructors were added according to the public libsndfile error codes.
- Fix reading/writing of frames hGetFrames and hPutFrames were using the sample-based library functions. These have been factored into Sound.File.Sndfile.Buffer and the correct functions are being used for the frame-based I/O functions.