HSoundFile-0.2.2: Audio file reading/writingSource codeContentsIndex
Sound.Codecs.WaveFile
Contents
Constructors
Encode/decode functions
Description
Encode lazy bytestrings to wave format, and decode lazy bytestrings in wave format to a WaveFile datum.
Synopsis
newtype WaveFile = WaveFile [WaveChunk]
data WaveChunk
= WaveFormat {
format :: SndFileInfo
}
| WaveData {
waveData :: ByteString
chunkLength :: Integer
}
| WaveMeta {
metaData :: ByteString
chunkLength :: Integer
}
| UnknownWaveChunk {
chunkType :: ByteString
unparsedData :: ByteString
chunkLength :: Integer
}
getWaveFile :: Monad m => ByteString -> AudioMonad m WaveFile
toWaveFile :: (SndFileCls a, Monad m) => a -> AudioMonad m WaveFile
isWaveFile :: ByteString -> Bool
Constructors
newtype WaveFile Source
Constructors
WaveFile [WaveChunk]
show/hide Instances
data WaveChunk Source
A SubChunk of a Wave file.
Constructors
WaveFormatFormat of the audio data.
format :: SndFileInfo
WaveDataThe audio data
waveData :: ByteString
chunkLength :: Integer
WaveMetaAny metadata in the file.
metaData :: ByteString
chunkLength :: Integer
UnknownWaveChunkan unknown chunk type
chunkType :: ByteString
unparsedData :: ByteString
chunkLength :: Integer
show/hide Instances
Encode/decode functions
getWaveFile :: Monad m => ByteString -> AudioMonad m WaveFileSource
return a WaveFile from a bytestring (including header)
toWaveFile :: (SndFileCls a, Monad m) => a -> AudioMonad m WaveFileSource
Create a WaveFile from a SndFileCls
isWaveFile :: ByteString -> BoolSource
determine (based on header information) if the bytestring is a wave file.
Produced by Haddock version 2.6.0