summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorXANTRONIX Development2022-01-14 15:28:39 -0500
committerXANTRONIX Development2022-01-14 15:28:39 -0500
commit031451c6287a344566c96b49274f92e9a44c6196 (patch)
tree798bcd096c5d72638110a6d13b9e538bf2c611c7 /include
parentc89de2271389dffcf30c79c24dfe0f965b4e504f (diff)
downloadxas-031451c6287a344566c96b49274f92e9a44c6196.tar.gz
xas-031451c6287a344566c96b49274f92e9a44c6196.tar.bz2
xas-031451c6287a344566c96b49274f92e9a44c6196.zip
it...compiles
Diffstat (limited to 'include')
-rw-r--r--include/xas/riff.h19
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 */