encoder/wave: add static_assert on sizeof(WaveHeader)
This commit is contained in:
parent
aa2e1bb310
commit
d2371af120
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue