Safe Haskell | None |
---|
- with :: IO a -> IO a
- formatWith :: IO a -> IO a
- openRead :: ReaderInfo -> FilePath -> IO (Ptr (Format ReadMode))
- withRead :: ReaderInfo -> FilePath -> (Ptr (Format ReadMode) -> IO a) -> IO a
- readStorableVector :: Ptr (Format ReadMode) -> Int -> IO (Vector Int32)
- readStorableVectorLazy :: Ptr (Format ReadMode) -> ChunkSize -> IO (Vector Int32)
- openWrite :: WriterInfo -> FilePath -> IO (Ptr (Format WriteMode))
- withWrite :: WriterInfo -> FilePath -> (Ptr (Format WriteMode) -> IO a) -> IO a
- writeStorableVector :: Ptr (Format WriteMode) -> Vector Int32 -> IO ()
- writeStorableVectorLazy :: Ptr (Format WriteMode) -> Vector Int32 -> IO ()
- close :: Mode mode => Ptr (Format mode) -> IO ()
- seek :: Mode mode => Ptr (Format mode) -> Int -> IO ()
- class Mode mode where
- getModeChar :: Format mode -> CChar
- data ReadMode
- data WriteMode
- data ReaderInfo = ReaderInfo {}
- defaultReaderInfo :: ReaderInfo
- data WriterInfo = WriterInfo {}
- defaultWriterInfo :: WriterInfo
- type Rate = Double
- newtype FileType = FileType {
- unFileType :: String
- data Format mode = Format {}
- data SignalInfo = SignalInfo {}
- data EncodingInfo = EncodingInfo {
- encoding :: Encoding
- bitsPerSample :: Int
- compression :: Double
- reverseBytes :: Option
- reverseNibbles :: Option
- reverseBits :: Option
- oppositeEndian :: Bool
- defaultSignalInfo :: SignalInfo
Documentation
formatWith :: IO a -> IO a
openRead :: ReaderInfo -> FilePath -> IO (Ptr (Format ReadMode))
This function will never return a nullPtr
.
Instead it throws a user exception if the file cannot be opened.
readStorableVector :: Ptr (Format ReadMode) -> Int -> IO (Vector Int32)
Multi-channel data is interleaved.
size
must be divisible by the number of channels.
readStorableVectorLazy :: Ptr (Format ReadMode) -> ChunkSize -> IO (Vector Int32)
Read complete file lazily into chunky storable vector. The chunkSize must be divisible by the number of channels.
openWrite :: WriterInfo -> FilePath -> IO (Ptr (Format WriteMode))
This function will never return a nullPtr
.
Instead it throws a user exception if the file cannot be opened.
writeStorableVector :: Ptr (Format WriteMode) -> Vector Int32 -> IO ()
Multi-channel data is interleaved.
size
must be divisible by the number of channels.
writeStorableVectorLazy :: Ptr (Format WriteMode) -> Vector Int32 -> IO ()
The chunkSize must be divisible by the number of channels.
data ReaderInfo
data WriterInfo
newtype FileType
data SignalInfo
data EncodingInfo
EncodingInfo | |
|