tag/RiffFormat: add struct RiffFmtChunk
This commit is contained in:
parent
f090af0a22
commit
6153fca4fc
@ -37,4 +37,17 @@ struct RiffChunkHeader {
|
|||||||
|
|
||||||
static_assert(sizeof(RiffChunkHeader) == 8);
|
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
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user