summaryrefslogtreecommitdiffstats
path: root/include/xas
diff options
context:
space:
mode:
authorXANTRONIX Development2022-01-15 10:30:20 -0500
committerXANTRONIX Development2022-01-15 10:30:20 -0500
commit712c1bafab413143b1edcd868a736f0fe6f026b9 (patch)
tree04a5954ece0a7cc9118b18149cd82734bcec89c0 /include/xas
parent10743527b811423032adb38a7dafe00f5b69443e (diff)
downloadxas-712c1bafab413143b1edcd868a736f0fe6f026b9.tar.gz
xas-712c1bafab413143b1edcd868a736f0fe6f026b9.tar.bz2
xas-712c1bafab413143b1edcd868a736f0fe6f026b9.zip
still not quite there, but close
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,