- 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
- wave_reader :: IterateeGM L Word8 IO (Maybe WAVEDict)
- read_riff :: IterateeGM L Word8 IO ()
- wave_chunk :: String -> Maybe WAVE_CHUNK
- chunk_to_string :: WAVE_CHUNK -> String
- dict_read_format :: Int -> WAVEDict -> IterateeGM L Word8 IO (Maybe AudioFormat)
- dict_read_first_format :: WAVEDict -> IterateeGM L Word8 IO (Maybe AudioFormat)
- dict_read_last_format :: WAVEDict -> IterateeGM L Word8 IO (Maybe AudioFormat)
- dict_read_first_data :: WAVEDict -> IterateeGM L Word8 IO (Maybe [Double])
- dict_read_last_data :: WAVEDict -> IterateeGM L Word8 IO (Maybe [Double])
- dict_read_data :: Int -> WAVEDict -> IterateeGM L Word8 IO (Maybe [Double])
- dict_process_data :: Int -> WAVEDict -> IterateeGM L Double IO a -> IterateeGM L Word8 IO (Maybe a)
Documentation
WAVEDE | |
|
data WAVEDE_ENUM Source
WEN_BYTE (forall a. EnumeratorGMM L Word8 L Word8 IO a) | |
WEN_DUB (forall a. EnumeratorGMM L Word8 L Double IO a) |
data AudioFormat Source
AudioFormat | |
|
wave_reader :: IterateeGM L Word8 IO (Maybe WAVEDict)Source
The library function to read the WAVE dictionary
wave_chunk :: String -> Maybe WAVE_CHUNKSource
Convert a string to WAVE_CHUNK type
chunk_to_string :: WAVE_CHUNK -> StringSource
Convert a WAVE_CHUNK to the representative string
dict_read_format :: Int -> WAVEDict -> IterateeGM L Word8 IO (Maybe AudioFormat)Source
Read the specified format chunk from the WAVE dictionary
dict_read_first_format :: WAVEDict -> IterateeGM L Word8 IO (Maybe AudioFormat)Source
Read the first format chunk in the WAVE dictionary.
dict_read_last_format :: WAVEDict -> IterateeGM 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.
dict_read_first_data :: WAVEDict -> IterateeGM L Word8 IO (Maybe [Double])Source
Read the first data chunk in the WAVE dictionary.
dict_read_last_data :: WAVEDict -> IterateeGM L Word8 IO (Maybe [Double])Source
Read the last data chunk in the WAVE dictionary.
dict_read_data :: Int -> WAVEDict -> IterateeGM L Word8 IO (Maybe [Double])Source
Read the specified data chunk from the WAVE dictionary.
dict_process_data :: Int -> WAVEDict -> IterateeGM L Double IO a -> IterateeGM L Word8 IO (Maybe a)Source
Read the specified data chunk from the dictionary, applying the data to the specified IterateeGM.