From 338a7f4f79f9611aa2e50e5c3f97daa9bb0940a4 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 6 Dec 2024 17:54:38 +0100 Subject: [PATCH] background_music: Fix build with MacPorts. Closes: #1528 powf() can't be used with constexpr. --- src/background_music/Loudness.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/background_music/Loudness.h b/src/background_music/Loudness.h index 503f2c9d5..cc9c5eb3a 100644 --- a/src/background_music/Loudness.h +++ b/src/background_music/Loudness.h @@ -43,7 +43,7 @@ struct Loudness float weight = 0; }; - static constexpr float get_weight(const float seconds) + static float get_weight(const float seconds) { const float relative = aud::clamp(seconds, perception_peak_seconds, perception_center_seconds) /