encoder/wave: add static_assert on sizeof(WaveHeader)

This commit is contained in:
Max Kellermann 2021-02-16 19:31:44 +01:00
parent aa2e1bb310
commit d2371af120
1 changed files with 2 additions and 0 deletions

View File

@ -71,6 +71,8 @@ struct WaveHeader {
uint32_t data_size;
};
static_assert(sizeof(WaveHeader) == 44);
static constexpr WaveHeader
MakeWaveHeader(int channels, int bits,
int freq, int block_size) noexcept