diff options
Diffstat (limited to 'include/xas')
-rw-r--r-- | include/xas/riff.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/include/xas/riff.h b/include/xas/riff.h index 6dc2d8d..bf438cc 100644 --- a/include/xas/riff.h +++ b/include/xas/riff.h @@ -4,6 +4,10 @@ #include <stdint.h> #include <sys/types.h> +#include <xas/audio.h> + +#define XAS_RIFF_WAVE_DEFAULT_TYPE 1 + typedef struct _xas_riff_chunk { char id[4]; uint32_t size; @@ -33,15 +37,12 @@ typedef struct _xas_riff_wave_header { xas_riff_chunk data; } xas_riff_wave_header; -typedef struct _xas_riff { - int fd; - size_t size; -} xas_riff; - -xas_riff *xas_riff_open_file(const char *path, int flags); - -int xas_riff_close(xas_riff *riff); +typedef struct _xas_riff xas_riff; -ssize_t xas_riff_write(xas_riff *riff, void *data, size_t len); +xas_audio_stream *xas_riff_open_file(const char *path, + size_t sample_size, + size_t sample_rate, + size_t channels, + int flags); #endif /* _XAS_RIFF_H */ |