tag/RiffFormat: add struct RiffFmtChunk

This commit is contained in:
Max Kellermann 2021-02-16 19:26:49 +01:00
parent f090af0a22
commit 6153fca4fc

View File

@ -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