From 031451c6287a344566c96b49274f92e9a44c6196 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Fri, 14 Jan 2022 15:28:39 -0500 Subject: it...compiles --- include/xas/riff.h | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'include/xas') 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 #include +#include + +#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 */ -- cgit v1.2.3