![]() |
libdragon
|
Go to the source code of this file.
Data Structures | |
| struct | wav64_header_t |
| Header of a WAV64 file. More... | |
| struct | wav64_vadpcm_vector_t |
| A vector of audio samples. More... | |
| struct | wav64_header_vadpcm_t |
| Extended header for a WAV64 file with VADPCM compression. More... | |
| struct | wav64_compression_t |
| WAV64 pluggable compression algorithm. More... | |
Functions | |
| void | raw_waveform_read (samplebuffer_t *sbuf, int fd, int wpos, int wlen, int bps) |
| Utility function to help implementing WaveformRead for uncompressed (raw) samples. | |
| void | raw_waveform_read_address (samplebuffer_t *sbuf, int rom_addr, int wpos, int wlen, int bps) |
| Utility function to help implementing WaveformRead for uncompressed (raw) samples. | |
| struct wav64_header_t |
Header of a WAV64 file.
| struct wav64_header_vadpcm_t |
Extended header for a WAV64 file with VADPCM compression.
| Data Fields | ||
|---|---|---|
| int8_t | npredictors | Number of predictors. |
| int8_t | order | Order of the predictors. |
| uint16_t | padding | padding |
| uint32_t | padding1 | padding1 |
| wav64_vadpcm_vector_t | loop_state[2] | State at the loop point. |
| wav64_vadpcm_vector_t | state[2] | Current decompression state. |
| wav64_vadpcm_vector_t | codebook[] | Codebook of the predictors. |
| void raw_waveform_read | ( | samplebuffer_t * | sbuf, |
| int | fd, | ||
| int | wpos, | ||
| int | wlen, | ||
| int | bps | ||
| ) |
Utility function to help implementing WaveformRead for uncompressed (raw) samples.
This function uses a file descriptor to load samples from ROM into the sample buffer.
| void raw_waveform_read_address | ( | samplebuffer_t * | sbuf, |
| int | rom_addr, | ||
| int | wpos, | ||
| int | wlen, | ||
| int | bps | ||
| ) |
Utility function to help implementing WaveformRead for uncompressed (raw) samples.
This function uses PI DMA to load samples from ROM into the sample buffer. Note: Tempory function should be removed when XM64 moves to using FILE*.