Skip to content

Commit 338a7f4

Browse files
background_music: Fix build with MacPorts. Closes: #1528
powf() can't be used with constexpr.
1 parent fedb27c commit 338a7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/background_music/Loudness.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ struct Loudness
4343
float weight = 0;
4444
};
4545

46-
static constexpr float get_weight(const float seconds)
46+
static float get_weight(const float seconds)
4747
{
4848
const float relative = aud::clamp(seconds, perception_peak_seconds,
4949
perception_center_seconds) /

0 commit comments

Comments
 (0)