diff --git a/src/pcm/ReplayGainAnalyzer.cxx b/src/pcm/ReplayGainAnalyzer.cxx index 86ba27067..5ec227923 100644 --- a/src/pcm/ReplayGainAnalyzer.cxx +++ b/src/pcm/ReplayGainAnalyzer.cxx @@ -86,7 +86,8 @@ CalcStereoRMS(std::span src) noexcept return 10 * std::log10(sum / src.size()) + 90.0 - 3.0; } -static constexpr bool +[[gnu::const]] +static bool IsSilentSample(float value) noexcept { return std::fabs(value) <= 1e-10f;