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

View File

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