summaryrefslogtreecommitdiffstats
path: root/include/xas
diff options
context:
space:
mode:
Diffstat (limited to 'include/xas')
-rw-r--r--include/xas/riff.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/xas/riff.h b/include/xas/riff.h
index 07ed0f2..4e600da 100644
--- a/include/xas/riff.h
+++ b/include/xas/riff.h
@@ -8,6 +8,9 @@
#define XAS_RIFF_WAVE_DEFAULT_TYPE 1
+#pragma pack(1)
+#pragma pack(push)
+
typedef struct _xas_riff_chunk {
char id[4];
uint32_t size;
@@ -18,7 +21,7 @@ typedef struct _xas_riff_main_chunk {
char type[4];
} xas_riff_main_chunk;
-typedef struct _xas_riff_wave_format_chunk {
+typedef struct _xas_riff_wave_chunk {
xas_riff_chunk header;
uint16_t type,
@@ -39,6 +42,8 @@ typedef struct _xas_riff_wave_header {
typedef struct _xas_riff xas_riff;
+#pragma pack(pop)
+
xas_audio_stream *xas_riff_file_open(const char *path,
size_t sample_size,
size_t sample_rate,