From 712c1bafab413143b1edcd868a736f0fe6f026b9 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sat, 15 Jan 2022 10:30:20 -0500 Subject: still not quite there, but close --- include/xas/riff.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') 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, -- cgit v1.2.3