úΦ(Œır      !"#$%&'()*+,-./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. ÿP†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹Œ‘’“”•–—˜™š›œŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂrstuvwxyz{|}~€ƒ„…rstuvwxyz{|}~€ƒ„… 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 . ÄThrow $ according to error code and string Ä ÄwÅÆÇÈÉÊËÌÍ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) !IStream format specification, consisting of header, sample and endianness  formats. INot 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 a> 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. dÚe'The file seek functions work much like System.IO.hseek with the M exception that the non-audio data is ignored and the seek only moves within G the audio data section of the file. In addition, seeks are defined in J number of (multichannel) frames. Therefore, a seek in a stereo file from L the current position forward with an offset of 1 would skip forward by one  sample of both channels. Ilike lseek(), the whence parameter can be any one of the following three  values:  9 - The offset is set to the start of the audio data plus ! offset (multichannel) frames.  9 - The offset is set to its current location plus offset  (multichannel) frames.  8 - 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 L 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. GNote that the frames offset can be negative and in fact should be when / SeekFromEnd is used for the whence parameter. eC will return the offset in (multichannel) frames from the start of K 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 h8 function returns the specificed string from the stream  header in the Û monad if it exists and Ü otherwise. iThe i3 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 M the case of RAW files, where the caller has to set the samplerate, channels J 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 5 structure members samplerate, channels, and format. Every call to `" should be matched with a call to a to free ( up memory allocated during the call to `. On success, the ` function returns a  which should be J 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[\Ö×]^_Ù`abcdÚefghivÅÆÇÈÉÊËÌÍ ÎÏĞÏĞ  !"#$%"#$%ÒÕÔÓÓÔÕ&*)(''()*+BA@?>=<;:9876543210/.-,,-./0123456789:;<=>?@ABCYXWVUTSRQPONMLKJIHGFEDDEFGHIJKLMNOPQRSTUVWXYZ[\Ö×]^_Ù`abcdÚefghiŞßàáâãäåj+The class MBuffer is used for polymorphic I/O on a  , and is I parameterized on the mutable array type, the element type and the monad  results are returned in. KIt is important to note that the data type used by the calling program and M the data format of the file do not need to be the same. For instance, it is E possible to open a 16 bit PCM encoded WAV file and read the data in H floating point format. The library seamlessly converts between the two M formats on-the-fly; the Haskell interface only supports reading and writing  æ or ç values. LWhen converting between integer data and floating point data, the following E rules apply: The default behaviour when reading floating point data  (k or l#) from a file with integer data is J normalisation. Regardless of whether data in the file is 8, 16, 24 or 32 E 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 L integer PCM file so that a data value of 1.0 will be the largest allowable M integer for the given bit width. This normalisation can be turned on or off E using the command interface [TODO: implementation missing in Haskell]. k and l- return the number of items read. Unless the L end of the file was reached during the read, the return value should equal L the number of items requested. Attempts to read beyond the end of the file I will not result in an error but will cause the read functions to return K less than the number of items requested or 0 if already at the end of the  file. kCFill the destination array with the requested number of items. The count L parameter must be an integer product of the number of channels or an error  will occur. lHFill the destination array with the requested number of frames of data. M The array must be large enough to hold the product of frames and the number % of channels or an error will occur. mWrite count2 samples from the source array to the stream. The count L parameter must be an integer product of the number of channels or an error  will occur. m? returns the number of items written (which should be the same  as the count parameter). nWrite count- frames from the source array to the stream. M The array must be large enough to hold the product of frames and the number % of channels or an error will occur. n@ returns the number of frames written (which should be the same  as the count parameter). èéêëo8Return an array with the requested number of items. The count parameter G must be an integer product of the number of channels or an error will  occur. p=Return an array with the requested number of frames of data. J The resulting array size is equal to the product of the number of frames  n. and the number of channels in the soundfile. ìqŞßàáâãäåjklmnèéêopqŞßàáâãäåjklmnklmnèéêopqíííîîîr  !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqw[Z!"#$%CYXWVUTSRQPONMLKJIHGFED+BA@?>=<;:9876543210/.-,&*)('\ ]^_d`cbaefgjklmnopq hiï       !"#$%&''()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹Œ‡‘’“’”’•’–—˜™˜š˜›˜œŸ ¡¢£¢¤¢¥¢¦¢§¢¨¢©¢ª¢«¢¬¢­¢®¢¯¢°¢±²³²´²µ²¶²·²¸²¹²º²»²¼²½²¾²¿²À²Á²Â²Ã²Ä²Å²Æ²Ç²È²É²Ê²Ë²Ì²Í²Î²Ï²Ğ²Ñ²Ò²Ó²Ô²Õ²Ö²×²Ø²Ù²Ú²Û²Ü²İ²Ş²ß²à²á²â²ã²ä²å²æ²ç²è²é²ê²ë²ì²í²î²ï²ğ²ñ²ò²ó²ô²õ²ö²÷²ø²ù²ú²û²ü²ı²ş²ÿ²²²²²²²²²² ² ² ² ² ²²²²²²²²²²²²²²²²²²² ²!²"²#²$²%²&²'²(²)²*²+²,²-².²/²0²012131415161718191:1;1<1=1>1?1@1A1B1C1D1E1F1G1H1I1JKLKMKNKOKPKQKRKSKTKUKVKWKXKYKZK[K\K]K^K_`a`b`c`d`e`f`g`h`i`jklkmknkokpkqkrkstutvtwtxtytz{|{}{~{{€‚ƒ„…†‡ˆ ‰ Š ‹ Œ     ‘ ’ “”•”–”—”˜”™”š”›”œ”””Ÿ” ”¡”¢”£”¤”¥”¦”§”¨”©”ª”«”¬”­”®¯°¯±¯²¯³¯´¯µ¯¶¯·¯¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÆÈÆÉÆÊÆËÆÌÆÍÆÎÆÏÆĞÆÑÆÒÆÓÆÔÆÕÆÖÆ×ÆØÙÚÛÜİŞßàáâãäåæçè釈êëìíîïğ‡ˆñòóôõôö÷øùúûüışÿ‡‡hsndfile-0.3.3Sound.File.SndfileC2HSSound.File.Sndfile.ExceptionSound.File.Sndfile.InterfaceSound.File.Sndfile.Buffer"Sound.File.Sndfile.Buffer.Storable"Sound.File.Sndfile.Buffer.IOCArray ExceptionUnsupportedEncoding MalformedFile SystemErrorUnrecognisedFormat errorStringcatch 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 setStringMBuffer hGetSamples hGetFrames hPutSamples hPutFrames hReadSamples hReadFramesinteract withIntConv withFloatConv peekIntConv peekFloatConvwithBoolpeekBoolwithEnumpeekEnum nothingIf nothingIfNullcombineBitMaskscontainsBitMaskextractBitMaskscIntConv cFloatConv cFromBoolghc-primGHC.BoolBoolcToBoolcToEnum cFromEnumbase GHC.Stable newStablePtr GHC.TypesIntGHC.IntInt8Int16Int32Int64 StablePtrGHC.WordWord8Word16Word32Word64GHC.PtrPtrFunPtrGHC.ForeignPtr ForeignPtrForeign.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 peekCAStringcastCharToCCharcastCCharToCharcharIsRepresentablewithCStringLen 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 reallocBytesrealloc 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 fromErrorCodethrow 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_floatsf_write_floatsf_readf_float sf_read_floatsf_writef_doublesf_write_doublesf_readf_doublesf_read_doubleDoubleFloatIOFunccheckSampleBoundscheckFrameBoundsunsafeWriteRange modifyArrayhIO