Data.Iteratee.Codecs.Wave
- data WAVEDE = WAVEDE {}
- data WAVEDE_ENUM
- = WEN_BYTE (forall a. EnumeratorGMM L Word8 L Word8 IO a)
- | WEN_DUB (forall a. EnumeratorGMM L Word8 L Double IO a)
- data WAVE_CHUNK
- = WAVE_FMT
- | WAVE_DATA
- | WAVE_OTHER String
- data AudioFormat = AudioFormat {
- numberOfChannels :: NumChannels
- sampleRate :: SampleRate
- bitDepth :: BitDepth
- waveReader :: IterateeG L Word8 IO (Maybe WAVEDict)
- readRiff :: IterateeG L Word8 IO ()
- waveChunk :: String -> Maybe WAVE_CHUNK
- chunkToString :: WAVE_CHUNK -> String
- dictReadFormat :: Int -> WAVEDict -> IterateeG L Word8 IO (Maybe AudioFormat)
- dictReadFirstFormat :: WAVEDict -> IterateeG L Word8 IO (Maybe AudioFormat)
- dictReadLastFormat :: WAVEDict -> IterateeG L Word8 IO (Maybe AudioFormat)
- dictReadFirstData :: WAVEDict -> IterateeG L Word8 IO (Maybe [Double])
- dictReadLastData :: WAVEDict -> IterateeG L Word8 IO (Maybe [Double])
- dictReadData :: Int -> WAVEDict -> IterateeG L Word8 IO (Maybe [Double])
- dictProcessData :: Int -> WAVEDict -> IterateeG L Double IO a -> IterateeG L Word8 IO (Maybe a)
Documentation
Constructors
WAVEDE | |
Fields
|
data WAVEDE_ENUM Source
Constructors
WEN_BYTE (forall a. EnumeratorGMM L Word8 L Word8 IO a) | |
WEN_DUB (forall a. EnumeratorGMM L Word8 L Double IO a) |
data WAVE_CHUNK Source
Standard WAVE Chunks
Constructors
WAVE_FMT | Format |
WAVE_DATA | Data |
WAVE_OTHER String | Other |
Instances
data AudioFormat Source
Constructors
AudioFormat | |
Fields
|
Instances
waveReader :: IterateeG L Word8 IO (Maybe WAVEDict)Source
The library function to read the WAVE dictionary
waveChunk :: String -> Maybe WAVE_CHUNKSource
Convert a string to WAVE_CHUNK type
chunkToString :: WAVE_CHUNK -> StringSource
Convert a WAVE_CHUNK to the representative string
dictReadFormat :: Int -> WAVEDict -> IterateeG L Word8 IO (Maybe AudioFormat)Source
Read the specified format chunk from the WAVE dictionary
dictReadFirstFormat :: WAVEDict -> IterateeG L Word8 IO (Maybe AudioFormat)Source
Read the first format chunk in the WAVE dictionary.
dictReadLastFormat :: WAVEDict -> IterateeG L Word8 IO (Maybe AudioFormat)Source
Read the last fromat chunk from the WAVE dictionary. This is useful when parsing all chunks in the dictionary.
dictReadFirstData :: WAVEDict -> IterateeG L Word8 IO (Maybe [Double])Source
Read the first data chunk in the WAVE dictionary.
dictReadLastData :: WAVEDict -> IterateeG L Word8 IO (Maybe [Double])Source
Read the last data chunk in the WAVE dictionary.