From 85adefd9a42e597ec0f06697c1676aae91249186 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 17 Feb 2021 14:18:59 +0100 Subject: [PATCH] encoder/wave: remove `constexpr` because memcpy() is not allowed --- src/encoder/plugins/WaveEncoderPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoder/plugins/WaveEncoderPlugin.cxx b/src/encoder/plugins/WaveEncoderPlugin.cxx index 53b22da54..b224b11e9 100644 --- a/src/encoder/plugins/WaveEncoderPlugin.cxx +++ b/src/encoder/plugins/WaveEncoderPlugin.cxx @@ -63,7 +63,7 @@ struct WaveHeader { static_assert(sizeof(WaveHeader) == 44); -static constexpr WaveHeader +static WaveHeader MakeWaveHeader(int channels, int bits, int freq, int block_size) noexcept {