y y      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwx Safe-InferredValues of type 1 are thrown by the library when an error occurs. Use catch( to catch only exceptions of this type. y Construct  from error code and message. yzy yzNone Header string field types. I/O mode. Abstract file handle. Return the stream  associated with the . The @ structure is for passing data between the calling function and = the library when opening a stream for reading or writing. Number of frames in file Audio sample rate Number of channels Header and sample format Number of sections {, when stream is seekable (e.g. local files) RStream format specification, consisting of header, sample and endianness formats. INot all combinations of header, sample and endianness formats are valid; , valid combinations can be checked with the c function. % Endianness. *Sample format. CHeader format. ^$Type for expressing sample indices. _#Type for expressing sample counts. |$Convert a C enumeration to Haskell. }$Convert a Haskell enumeration to C. `Default 'empty'4 format, useful when opening files for reading with . a6Return soundfile duration in seconds computed via the  fields   and . bDefault 'empty'2 info, useful when opening files for reading with . cGThis function allows the caller to check if a set of parameters in the   struct is valid before calling d (). c returns {! if the parameters are valid and ~  otherwise. eThe e> function closes the stream, deallocates its internal buffers + and returns () on success or signals an  Exception otherwise. fIf the stream is opened with  or  , call the  operating system'2s function to force the writing of all file cache / buffers to disk. If the file is opened with  no action is  taken. g4Get header format information associated with file. i'The file seek functions work much like  with the H exception that the non-audio data is ignored and the seek only moves M within the audio data section of the file. In addition, seeks are defined J in number of (multichannel) frames. Therefore, a seek in a stereo file L from the current position forward with an offset of 1 would skip forward # by one sample of both channels. Qlike lseek(), the whence parameter can be any one of the following three values:  W - The offset is set to the start of the audio data plus offset (multichannel) frames.  P - The offset is set to its current location plus offset (multichannel) frames.  O - The offset is set to the end of the data plus offset (multichannel) frames. IInternally, libsndfile keeps track of the read and write locations using K separate read and write pointers. If a file has been opened with a mode  of , calling either j or k allows the 6 read and write pointers to be modified separately. i modifies both # the read and the write pointer. GNote that the frames offset can be negative and in fact should be when 1 SeekFromEnd is used for the whence parameter. iC will return the offset in (multichannel) frames from the start of F the audio data, or signal an error when an attempt is made to seek ( beyond the start or end of the file. jLike i), but only the read pointer is modified. kLike i*, but only the write pointer is modified. lThe lE function returns the specified string from the stream header in the  monad if it exists and  otherwise. mThe m> function sets the string data associated with the respective . When opening a file for read ("), the format field should be set  to ` before calling d. The only exception to this I is the case of RAW files, where the caller has to set the samplerate, G channels and format fields to valid values. All other fields of the + structure are filled in by the library. When opening a file for write (), the caller must fill in the 7 structure members samplerate, channels, and format. Every call to d" should be matched with a call to e to / free up memory allocated during the call to d. On success, the d function returns a  which should be L passed as the first parameter to all subsequent libsndfile calls dealing ( with that audio stream. On fail, the d function signals an   Exception.   !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_|}`abcdefghijklm}  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_|}`abcdefghijklm2  !"#$%)('&*BA@?>=<;:9876543210/.-,+C]\[ZYXWVUTSRQPONMLKJIHGFED^_|}`abcdefghijklmNone  Nonen*The class Sample is used for polymorphic I/O on a M, and is parameterized with the element type that is to be read from a file. sIt is important to note that the data type used by the calling program and the data format of the file do not need to be the same. For instance, it is possible to open a 16 bit PCM encoded WAV file and read the data in floating point format. The library seamlessly converts between the two formats on-the-fly; the Haskell interface currently supports reading and writing  or # floating point values, as well as  and  integer values. HWhen converting between integer data and floating point data, the following rules apply: The default behaviour when reading floating point data from a file with integer data is normalisation. Regardless of whether data in the file is 8, 16, 24 or 32 bit wide, the data will be read as floating point data in the range [-1.0, 1.0]). Similarly, data in the range [-1.0, 1.0] will be written to an integer PCM file so that a data value of 1.0 will be the largest allowable integer for the given bit width. This normalisation can be turned on or off using the command interface (!implementation missing in Haskell).  hGetSamples and  hGetFrames[ return the number of items read. Unless the end of the file was reached during the read, the return value should equal the number of items requested. Attempts to read beyond the end of the file will not result in an error but will cause the read functions to return less than the number of items requested or 0 if already at the end of the file. oRead a buffer of frames. pWrite a buffer of frames. nopnopnopNoneqBuffer class for I/O on soundfile handles. rConstruct a buffer from a ', a start index and the element count. sRetrieve from a buffer a ; pointing to its data, a start index and an element count. t>Return an buffer with the requested number of frames of data. JThe resulting buffer size is equal to the product of the number of frames n. and the number of channels in the soundfile. uEReturn the contents of a handle open for reading in a single buffer. v2Return the contents of a file in a single buffer. w=Write the contents of a buffer to a handle open for writing. %Return the number of frames written. x*Write the contents of a buffer to a file. & Return the number of frames written. qrstuvwx nopqrstuvwx nopqrstuvwxqrstuvwxNoney  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwx~_^ !"#$C]\[ZYXWVUTSRQPONMLKJIHGFED*BA@?>=<;:9876543210/.-,+%)('&`abchdgfeijknopqrstuvwx lm        !"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~hsndfile-0.7.1Sound.File.SndfileSound.File.Sndfile.BufferSound.File.Sndfile.ExceptionSound.File.Sndfile.Interface System.IOhseek"Sound.File.Sndfile.Buffer.Internal Sound.File.Sndfile.Buffer.Sample ExceptionUnsupportedEncoding MalformedFile SystemErrorUnrecognisedFormat errorString StringTypeStrDate StrComment StrArtist StrSoftware StrCopyrightStrTitleSeekMode SeekFromEnd RelativeSeek AbsoluteSeekIOMode ReadWriteMode WriteModeReadModeHandlehInfoInfoframes sampleratechannelsformatsectionsseekableFormat headerFormat sampleFormat endianFormat EndianFormat EndianCpu EndianBig EndianLittle EndianFile SampleFormatSampleFormatVorbisSampleFormatFormatDpcm16SampleFormatFormatDpcm8SampleFormatDwvwNSampleFormatDwvw24SampleFormatDwvw16SampleFormatDwvw12SampleFormatG72340SampleFormatG72324SampleFormatG72132SampleFormatVoxAdpcmSampleFormatGsm610SampleFormatMsAdpcmSampleFormatImaAdpcmSampleFormatAlawSampleFormatUlawSampleFormatDoubleSampleFormatFloatSampleFormatPcmU8SampleFormatPcm32SampleFormatPcm24SampleFormatPcm16SampleFormatPcmS8SampleFormatNone HeaderFormatHeaderFormatRf64HeaderFormatMpc2kHeaderFormatOggHeaderFormatWveHeaderFormatCafHeaderFormatFlacHeaderFormatSd2HeaderFormatWavexHeaderFormatAvrHeaderFormatSdsHeaderFormatHtkHeaderFormatXiHeaderFormatPvfHeaderFormatMat5HeaderFormatMat4HeaderFormatW64HeaderFormatIrcamHeaderFormatVocHeaderFormatNistHeaderFormatSvxHeaderFormatPafHeaderFormatRawHeaderFormatAuHeaderFormatAiffHeaderFormatWavHeaderFormatNoneIndexCount defaultFormatduration defaultInfo checkFormatopenFilehClosehFlush getFileInfo hIsSeekablehSeek hSeekRead hSeekWrite getString setStringSamplehGetBufhPutBufBufferfromForeignPtr toForeignPtr hGetBuffer hGetContentsreadFile hPutBuffer writeFile fromErrorCode$fExceptionExceptionghc-prim GHC.TypesTruecToEnum cFromEnumFalsebase Data.MaybeMaybeNothing $fEnumIOMode HandlePtrhPtr FormatMask FormatEndMaskFormatTypeMask FormatSubMask sf_set_string sf_get_stringsf_seek sf_write_syncsf_closesf_open sf_strerrorsf_errorsf_format_checkhsFormatcFormat checkHandlehSeek'$fEnumStringType$fEnumSeekMode$fStorableInfo$fEnumFormatMask$fEnumEndianFormat$fEnumSampleFormat$fEnumHeaderFormatIOFuncsf_writef_doublesf_readf_doublesf_writef_floatsf_readf_floatsf_writef_int32sf_readf_int32sf_writef_int16sf_readf_int16hBufIODoubleFloatGHC.IntInt16Int32$fSampleDouble $fSampleFloat $fSampleInt32 $fSampleInt16GHC.ForeignPtr ForeignPtr