From 6153fca4fc259a0c9945d8340ab537edad266bdb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 16 Feb 2021 19:26:49 +0100 Subject: [PATCH] tag/RiffFormat: add struct RiffFmtChunk --- src/tag/RiffFormat.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/tag/RiffFormat.hxx b/src/tag/RiffFormat.hxx index d0d92d078..a87dab37a 100644 --- a/src/tag/RiffFormat.hxx +++ b/src/tag/RiffFormat.hxx @@ -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