|
coastline 0.0.4
|
The reading of wave files through the multimedia I/O of Windows. More...

Go to the source code of this file.
Macros | |
| #define | WAVE_ERROR_MEMORY 0xe000 |
| Global memory was not allocated. | |
| #define | WAVE_ERROR_CANNOT_OPEN 0xe100 |
| The file was not opened. | |
| #define | WAVE_ERROR_NOT_WAVE_FILE 0xe101 |
| The file is not a wave file. | |
| #define | WAVE_ERROR_CANNOT_READ 0xe102 |
| The file was not read. | |
| #define | WAVE_ERROR_CORRUPT_WAVE_FILE 0xe103 |
| The data of the file ends early. | |
Functions | |
| int | WaveOpenFile (const char *pszPath, HMMIO *phmmio, WAVEFORMATEX **ppFormat, MMCKINFO *pckRiff) |
| Open a wave file and read its format into global memory, leaving the file at the end of the chunk of the format. | |
| int | WaveStartDataRead (HMMIO *phmmio, MMCKINFO *pckData, MMCKINFO *pckRiff) |
| Seek to the start of the RIFF of an open wave file and descend into its chunk of data. | |
| int | WaveReadFile (HMMIO hmmio, DWORD dwRead, BYTE *pDest, MMCKINFO *pckData, DWORD *pdwActualRead) |
| Read data from the chunk of data of an open wave file. | |
| int | WaveLoadFile (const char *pszPath, DWORD *pdwSize, DWORD *pdwSamples, WAVEFORMATEX **ppFormat, void **ppData) |
| Read a wave file into global memory. | |
The reading of wave files through the multimedia I/O of Windows.
| #define WAVE_ERROR_MEMORY 0xe000 |
Global memory was not allocated.
| #define WAVE_ERROR_CANNOT_OPEN 0xe100 |
The file was not opened.
| #define WAVE_ERROR_NOT_WAVE_FILE 0xe101 |
The file is not a wave file.
| #define WAVE_ERROR_CANNOT_READ 0xe102 |
The file was not read.
| #define WAVE_ERROR_CORRUPT_WAVE_FILE 0xe103 |
The data of the file ends early.
| int WaveOpenFile | ( | const char * | pszPath, |
| HMMIO * | phmmio, | ||
| WAVEFORMATEX ** | ppFormat, | ||
| MMCKINFO * | pckRiff ) |
Open a wave file and read its format into global memory, leaving the file at the end of the chunk of the format.
| pszPath | The path of the file. |
| phmmio | Receives the open file, or null. |
| ppFormat | Receives the format, or null. |
| pckRiff | Receives the chunk of the RIFF. |
Seek to the start of the RIFF of an open wave file and descend into its chunk of data.
| phmmio | The open file. |
| pckData | Receives the chunk of data. |
| pckRiff | The chunk of the RIFF. |
| int WaveReadFile | ( | HMMIO | hmmio, |
| DWORD | dwRead, | ||
| BYTE * | pDest, | ||
| MMCKINFO * | pckData, | ||
| DWORD * | pdwActualRead ) |
Read data from the chunk of data of an open wave file.
| hmmio | The open file. |
| dwRead | The bytes to read, limited to the bytes left in the chunk. |
| pDest | Receives the data. |
| pckData | The chunk of data, whose size is reduced by the bytes read. |
| pdwActualRead | Receives the bytes read, or 0 on an error. |
| int WaveLoadFile | ( | const char * | pszPath, |
| DWORD * | pdwSize, | ||
| DWORD * | pdwSamples, | ||
| WAVEFORMATEX ** | ppFormat, | ||
| void ** | ppData ) |
Read a wave file into global memory.
| pszPath | The path of the file. |
| pdwSize | Receives the size of the data. |
| pdwSamples | Not written. |
| ppFormat | Receives the format. |
| ppData | Receives the data. |