-
-enum wav_error_code {
- WAV_IO_ERROR = 1,
- WAV_NO_MEMORY,
- WAV_INVALID_FORMAT,
- WAV_UNSUPPORTED_FORMAT
-};
-
-typedef int (*wav_read_callback)(void *cookie, void *data, uint32_t size);
-typedef int (*wav_seek_callback)(void *cookie, int64_t off, int whence);
-typedef int64_t (*wav_tell_callback)(void *cookie);
-
-typedef struct wav_io_context_t {
- wav_read_callback read;
- wav_seek_callback seek;
- wav_tell_callback tell;
-} wav_io_context_t;