Commit d2371af1 authored by Max Kellermann's avatar Max Kellermann

encoder/wave: add static_assert on sizeof(WaveHeader)

parent aa2e1bb3
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment