Commit 6153fca4 authored by Max Kellermann's avatar Max Kellermann

tag/RiffFormat: add struct RiffFmtChunk

parent f090af0a
......@@ -37,4 +37,17 @@ struct RiffChunkHeader {
static_assert(sizeof(RiffChunkHeader) == 8);
struct RiffFmtChunk {
static constexpr uint16_t TAG_PCM = 1;
uint16_t tag;
uint16_t channels;
uint32_t sample_rate;
uint32_t byte_rate;
uint16_t block_align;
uint16_t bits_per_sample;
};
static_assert(sizeof(RiffFmtChunk) == 16);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment