summaryrefslogtreecommitdiffstats
path: root/parecord/wav_header.h
diff options
context:
space:
mode:
Diffstat (limited to 'parecord/wav_header.h')
-rw-r--r--parecord/wav_header.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/parecord/wav_header.h b/parecord/wav_header.h
new file mode 100644
index 0000000..eaf862b
--- /dev/null
+++ b/parecord/wav_header.h
@@ -0,0 +1,21 @@
+#ifndef WAV_HEADER_H
+#define WAV_HEADER_H
+
+struct wav_header
+{
+ uint32_t chunkId;
+ uint32_t chunkSize;
+ uint32_t format;
+ uint32_t subchunk1Id;
+ uint32_t subchunk1Size;
+ uint16_t audioFormat;
+ uint16_t numChannels;
+ uint32_t sampleRate;
+ uint32_t byteRate;
+ uint16_t blockAlign;
+ uint16_t bitsPerSample;
+ uint32_t subchunk2Id;
+ uint32_t subchunk2Size;
+};
+
+#endif /* WAV_HEADER_H */