2 * Copyright (C) 2013 nu774
3 * For conditions of distribution and use, see copyright notice in COPYING
9 #include "pcm_reader.h"
15 WAV_UNSUPPORTED_FORMAT
18 typedef int (*wav_read_callback
)(void *cookie
, void *data
, uint32_t size
);
19 typedef int (*wav_seek_callback
)(void *cookie
, int64_t off
, int whence
);
20 typedef int64_t (*wav_tell_callback
)(void *cookie
);
22 typedef struct wav_io_context_t
{
23 wav_read_callback read
;
24 wav_seek_callback seek
;
25 wav_tell_callback tell
;
28 typedef struct wav_reader_t wav_reader_t
;
30 pcm_reader_t
*wav_open(wav_io_context_t
*io_ctx
, void *io_cookie
,
32 pcm_reader_t
*raw_open(wav_io_context_t
*io_ctx
, void *io_cookie
,
33 const pcm_sample_description_t
*desc
);