summaryrefslogtreecommitdiff
path: root/wav.h
diff options
context:
space:
mode:
authorPaul Harrison <[email protected]>2026-06-07 17:49:16 -0700
committerPaul Harrison <[email protected]>2026-06-07 17:49:16 -0700
commit76a02622caf8f16979d8bc67890764768f7d06c0 (patch)
treed4578dd33e4b3a06623dbcdd158f099ec43fac09 /wav.h
DTMF Encoder
Diffstat (limited to 'wav.h')
-rw-r--r--wav.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/wav.h b/wav.h
new file mode 100644
index 0000000..d5e26cb
--- /dev/null
+++ b/wav.h
@@ -0,0 +1,18 @@
+#pragma once
+#include <stdint.h>
+
+struct wav_header {
+ char riff_magic[4];
+ uint32_t size;
+ char wave_magic[4];
+ char format_magic[4];
+ uint32_t format_size;
+ uint16_t format_type;
+ uint16_t channels;
+ uint32_t sample_rate;
+ uint32_t rate1;
+ uint16_t rate2;
+ uint16_t bits_per_sample;
+ char data_magic[4];
+ uint32_t data_size;
+};