Skip to content

Commit

Permalink
background_music: Fix build with MacPorts. Closes: #1528
Browse files Browse the repository at this point in the history
powf() can't be used with constexpr.
  • Loading branch information
radioactiveman committed Dec 6, 2024
1 parent fedb27c commit 338a7f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background_music/Loudness.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) /
Expand Down

0 comments on commit 338a7f4

Please sign in to comment.