u      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~+Instance for special casing null pointers. ;Given a bit pattern, yield all bit masks that it contains. I This does *not* attempt to compute a minimal set of bit masks that when G combined yield the bit pattern, instead all contained bit masks are  produced. Integral conversion Floating conversion Obtain C value from Haskell . Obtain Haskell  from C value. $Convert a C enumeration to Haskell. $Convert a Haskell enumeration to C. V      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~uvwxyz{|}~uvwxyz{|}~ Values of type 1 are thrown by the library when an error occurs. Use ( to catch only exceptions of this type.  Construct  from error code and string. Catch values of type . . catch :: IO a -> (Exception -> IO a) -> IO a  catch = E.catch Throw $ according to error code and string  wHeader string field types. I/O mode. Abstract file handle. Return the stream  associated with the . The z 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. uNot all combinations of header, sample and endianness formats are valid; valid combinamtions can be checked with the _ function. "#$%& Endianness. '()*+Sample format. ,-./0123456789:;<=>?@ABCHeader format. DEFGHIJKLMNOPQRSTUVWXYZ$Type for expressing sample indices. [#Type for expressing sample counts. \Default 'empty'4 format, useful when opening files for reading with . ]6Return soundfile duration in seconds computed via the  fields  and . ^Default 'empty'2 info, useful when opening files for reading with . _GThis function allows the caller to check if a set of parameters in the  struct is valid before calling ` (). _ returns ! if the parameters are valid and  otherwise. `aThe af function closes the stream, deallocates its internal buffers and returns () on success or signals an  Exception otherwise. bIf the stream is opened with  or , call the operating system'^s function to force the writing of all file cache buffers to disk. If the file is opened with  no action is taken. c4Get header format information associated with file. de'The file seek functions work much like System.IO.hseekI with the exception that the non-audio data is ignored and the seek only moves within the audio data section of the file. In addition, seeks are defined in number of (multichannel) frames. Therefore, a seek in a stereo file 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. Internally, libsndfile keeps track of the read and write locations using separate read and write pointers. If a file has been opened with a mode of , calling either f or g? allows the read and write pointers to be modified separately. e/ modifies both the read and the write pointer. uNote that the frames offset can be negative and in fact should be when SeekFromEnd is used for the whence parameter. e will return the offset in (multichannel) frames from the start of the audio data, or signal an error when an attempt is made to seek beyond the start or end of the file. fLike e), but only the read pointer is modified. gLike e*, but only the write pointer is modified. hThe hF function returns the specificed string from the stream header in the  monad if it exists and  otherwise. iThe i> function sets the string data associated with the respective . When opening a file for read (%), the format field should be set to \ before calling `. The only exception to this is the case of RAW files, where the caller has to set the samplerate, 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 (S), the caller must fill in the structure members samplerate, channels, and format. Every call to `" should be matched with a call to a0 to free up memory allocated during the call to `. On success, the ` function returns a  which should be passed as the first parameter to all subsequent libsndfile calls dealing with that audio stream. On fail, the ` function signals an  Exception. v  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghiv   !"#$%"#$%&*)(''()*+BA@?>=<;:9876543210/.-,,-./0123456789:;<=>?@ABCYXWVUTSRQPONMLKJIHGFEDDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi   j*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. kRead a buffer of frames. lWrite a buffer of frames. jkljklkl mBuffer class for I/O on soundfile handles. nConstruct a buffer from a ', a start index and the element count. oRetrieve from a buffer a ; pointing to its data, a start index and an element count. p>Return an buffer with the requested number of frames of data. K The resulting buffer size is equal to the product of the number of frames n. and the number of channels in the soundfile. qEReturn the contents of a handle open for reading in a single buffer. LReturn the contents of a handle open for reading as a lazy list of buffers. r2Return the contents of a file in a single buffer. 9Return the contents of a file as a lazy list of buffers. s=Write the contents of a buffer to a handle open for writing. & Return the number of frames written. t*Write the contents of a buffer to a file. & Return the number of frames written. jklmnopqrst jklmnopqrstmnonopqrstu  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstz[Z!"#$%CYXWVUTSRQPONMLKJIHGFED+BA@?>=<;:9876543210/.-,&*)('\ ]^_d`cbaefgjklmnopqrst hi      !""#$%&'())*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~      !"#$%&'()*+,-./0123456678797:7;7<7=7>7?7@7A7B7C7D7E7F7G7H7I7J7K7L7M7N7O7P7Q7R7S7TUVUWUXUYUZU[U\U]U^U_U`UaUbUcUdUeUfUgUhUijkjljmjnjojpjqjrjsjtuvuwuxuyuzu{u|u}u~       hsndfile-0.5.0Sound.File.SndfileSound.File.Sndfile.BufferC2HSSound.File.Sndfile.ExceptionSound.File.Sndfile.Interface"Sound.File.Sndfile.Buffer.Internal Sound.File.Sndfile.Buffer.SamplebaseControl.Exception.Basecatch ExceptionUnsupportedEncoding MalformedFile SystemErrorUnrecognisedFormat errorString StringTypeStrDate StrComment StrArtist StrSoftware StrCopyrightStrTitleSeekMode SeekFromEnd RelativeSeek AbsoluteSeekIOMode ReadWriteMode WriteModeReadModeHandlehInfoInfoframes sampleratechannelsformatsectionsseekableFormat headerFormat sampleFormat endianFormat EndianFormat EndianCpu EndianBig EndianLittle EndianFile SampleFormatSampleFormatFormatDpcm16SampleFormatFormatDpcm8SampleFormatDwvwNSampleFormatDwvw24SampleFormatDwvw16SampleFormatDwvw12SampleFormatG72340SampleFormatG72324SampleFormatG72132SampleFormatVoxAdpcmSampleFormatGsm610SampleFormatMsAdpcmSampleFormatImaAdpcmSampleFormatAlawSampleFormatUlawSampleFormatDoubleSampleFormatFloatSampleFormatPcmU8SampleFormatPcm32SampleFormatPcm24SampleFormatPcm16SampleFormatPcmS8SampleFormatNone HeaderFormatHeaderFormatCafHeaderFormatFlacHeaderFormatSd2HeaderFormatWavexHeaderFormatAvrHeaderFormatSdsHeaderFormatHtkHeaderFormatXiHeaderFormatPvfHeaderFormatMat5HeaderFormatMat4HeaderFormatW64HeaderFormatIrcamHeaderFormatVocHeaderFormatNistHeaderFormatSvxHeaderFormatPafHeaderFormatRawHeaderFormatAuHeaderFormatAiffHeaderFormatWavHeaderFormatNoneIndexCount defaultFormatduration defaultInfo checkFormatopenFilehClosehFlush getFileInfo hIsSeekablehSeek hSeekRead hSeekWrite getString setStringSamplehGetBufhPutBufBufferfromForeignPtr toForeignPtr hGetBuffer hGetContentsreadFile hPutBuffer writeFile withIntConv withFloatConv peekIntConv peekFloatConvwithBoolpeekBoolwithEnumpeekEnum nothingIf nothingIfNullcombineBitMaskscontainsBitMaskextractBitMaskscIntConv cFloatConv cFromBoolghc-primGHC.BoolBoolcToBoolcToEnum cFromEnum GHC.Stable newStablePtr GHC.TypesIntGHC.IntInt8Int16Int32Int64 StablePtrGHC.WordWord8Word16Word32Word64GHC.PtrPtrFunPtrGHC.ForeignPtr ForeignPtrForeign.MarshalunsafeLocalStateForeign.Marshal.PoolpooledNewArray0pooledNewArray pooledNewpooledReallocArray0pooledReallocArraypooledMallocArray0pooledMallocArraypooledReallocBytes pooledReallocpooledMallocBytes pooledMallocwithPoolfreePoolnewPoolPoolForeign.C.ErrorerrnoToIOErrorthrowErrnoPathIfMinus1_throwErrnoPathIfMinus1throwErrnoPathIfNullthrowErrnoPathIf_throwErrnoPathIfthrowErrnoPaththrowErrnoIfNullRetryMayBlockthrowErrnoIfNullRetrythrowErrnoIfNull throwErrnoIfMinus1RetryMayBlock_throwErrnoIfMinus1RetryMayBlockthrowErrnoIfMinus1Retry_throwErrnoIfMinus1RetrythrowErrnoIfMinus1_throwErrnoIfMinus1throwErrnoIfRetryMayBlock_throwErrnoIfRetry_throwErrnoIfRetryMayBlockthrowErrnoIfRetry throwErrnoIf_ throwErrnoIf throwErrno resetErrnogetErrno isValidErrnoeXDEV eWOULDBLOCKeUSERSeTXTBSY eTOOMANYREFS eTIMEDOUTeTIMEeSTALEeSRMNTeSRCHeSPIPEeSOCKTNOSUPPORT eSHUTDOWNeRREMOTE eRPCMISMATCHeROFSeREMOTEeREMCHGeRANGE ePROTOTYPEePROTONOSUPPORTePROTO ePROGUNAVAIL ePROGMISMATCH ePROCUNAVAILePROCLIMePIPE ePFNOSUPPORTePERM eOPNOTSUPPeNXIOeNOTTYeNOTSOCK eNOTEMPTYeNOTDIReNOTCONNeNOTBLKeNOSYSeNOSTReNOSReNOSPC eNOPROTOOPTeNONETeNOMSGeNOMEMeNOLINKeNOLCKeNOEXECeNOENTeNODEVeNODATAeNOBUFSeNFILE eNETUNREACH eNETRESETeNETDOWN eNAMETOOLONG eMULTIHOPeMSGSIZEeMLINKeMFILEeLOOPeISDIReISCONNeIOeINVALeINTR eINPROGRESSeILSEQeIDRM eHOSTUNREACH eHOSTDOWNeFTYPEeFBIGeFAULTeEXISTeDQUOTeDOMeDIRTY eDESTADDRREQeDEADLK eCONNRESET eCONNREFUSED eCONNABORTEDeCOMMeCHILDeBUSYeBADRPCeBADMSGeBADFeALREADYeAGAIN eAFNOSUPPORTeADV eADDRNOTAVAIL eADDRINUSEeACCESe2BIGeOKErrnoForeign.C.StringwithCWStringLen withCWStringnewCWStringLen newCWStringpeekCWStringLen peekCWStringwithCAStringLen withCAStringnewCAStringLen newCAStringpeekCAStringLen peekCAStringcastCharToCSCharcastCSCharToCharcastCharToCUCharcastCUCharToCharcastCharToCCharcastCCharToCharcharIsRepresentablewithCStringLen withCString newCStringLen newCStringpeekCStringLen peekCStringCString CStringLenCWString CWStringLenForeign.Marshal.Array advancePtr lengthArray0 moveArray copyArray withArrayLen0 withArray0 withArrayLen withArray newArray0newArray pokeArray0 pokeArray peekArray0 peekArray reallocArray0 reallocArray allocaArray0 allocaArray mallocArray0 mallocArrayForeign.Marshal.Utils moveBytes copyByteswithMany maybePeek maybeWithmaybeNewtoBoolfromBoolwithnewForeign.Marshal.Allocfree reallocBytesreallocallocaBytesAligned allocaBytesalloca mallocBytesmalloc finalizerFreeForeign.Marshal.Errorvoid throwIfNull throwIfNeg_ throwIfNegthrowIf_throwIfForeign.ForeignPtrmallocForeignPtrArray0mallocForeignPtrArraynewForeignPtrEnvwithForeignPtr newForeignPtr Foreign.Ptr intPtrToPtr ptrToIntPtr wordPtrToPtr ptrToWordPtrWordPtrIntPtrfreeHaskellFunPtrfinalizeForeignPtrcastForeignPtrunsafeForeignPtrToPtrtouchForeignPtrnewForeignPtr_addForeignPtrFinalizerEnvaddForeignPtrFinalizermallocForeignPtrBytesmallocForeignPtr FinalizerPtrFinalizerEnvPtrForeign.C.TypesCCharCSCharCUCharCShortCUShortCIntCUIntCLongCULongCLLongCULLongCFloatCDoubleCPtrdiffCSizeCWchar CSigAtomicCClockCTimeCFileCFposCJmpBufCIntPtrCUIntPtrCIntMaxCUIntMaxForeign.Storablepokepeek pokeByteOff peekByteOff pokeElemOff peekElemOff alignmentsizeOfStorablecastPtrToStablePtrcastStablePtrToPtrdeRefStablePtr freeStablePtrcastPtrToFunPtrcastFunPtrToPtr castFunPtr nullFunPtrminusPtralignPtrplusPtrcastPtrnullPtr Data.BitsrotateRrotateLshiftRshiftLisSignedbitSizetestBit complementBitclearBitsetBitbitrotateshift complementxor.|..&.BitsGHC.IOunsafePerformIOwithCStringLenIntConvpeekCStringLenIntConv fromErrorCodethrowtry sf_set_string sf_get_stringsf_seek sf_write_syncsf_closesf_open sf_strerrorsf_errorsf_format_check HandlePtrhPtrTrue FormatMask FormatEndMaskFormatTypeMask FormatSubMaskhsFormatcFormatFalse checkHandlehSeek' Data.MaybeMaybeNothing $fEnumIOModesf_writef_doublesf_readf_doublesf_writef_floatsf_readf_floatsf_writef_word32sf_readf_word32sf_writef_word16sf_readf_word16IOFunchBufIODoubleFloathGetContentChunksreadFileChunks