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;
|
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
|
||||||
|
|
Loading…
Reference in New Issue