1#ifndef COASTLINE_PLATFORM_WIN_WAVREAD_H
2#define COASTLINE_PLATFORM_WIN_WAVREAD_H
19#define WAVE_ERROR_MEMORY 0xe000
21#define WAVE_ERROR_CANNOT_OPEN 0xe100
23#define WAVE_ERROR_NOT_WAVE_FILE 0xe101
25#define WAVE_ERROR_CANNOT_READ 0xe102
27#define WAVE_ERROR_CORRUPT_WAVE_FILE 0xe103
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 ...
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.