From c657fb04be7a8122983e0ad480827dd101178f02 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 15 Aug 2023 14:03:13 +0200 Subject: [PATCH] Fix build Signed-off-by: falkTX --- source/native-plugins/audio-file.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/native-plugins/audio-file.cpp b/source/native-plugins/audio-file.cpp index 302e750b6..548742300 100644 --- a/source/native-plugins/audio-file.cpp +++ b/source/native-plugins/audio-file.cpp @@ -24,10 +24,10 @@ // -------------------------------------------------------------------------------------------------------------------- -// static constexpr const float M_PIf = static_cast(M_PI); - class VolumeFilter { + static constexpr const float kPIf = static_cast(M_PI); + float a0, b1, z1; public: @@ -46,7 +46,7 @@ public: { const float frequency = 30.0f / sampleRate; - b1 = std::exp(-2.f * M_PIf * frequency); + b1 = std::exp(-2.f * kPIf * frequency); a0 = 1.f - b1; z1 = 0.f; }