Browse Source

Fix build

Signed-off-by: falkTX <falktx@falktx.com>
fix-audiofile-buffering
falkTX 1 year ago
parent
commit
c657fb04be
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      source/native-plugins/audio-file.cpp

+ 3
- 3
source/native-plugins/audio-file.cpp View File

@@ -24,10 +24,10 @@


// -------------------------------------------------------------------------------------------------------------------- // --------------------------------------------------------------------------------------------------------------------


// static constexpr const float M_PIf = static_cast<float>(M_PI);

class VolumeFilter class VolumeFilter
{ {
static constexpr const float kPIf = static_cast<float>(M_PI);

float a0, b1, z1; float a0, b1, z1;


public: public:
@@ -46,7 +46,7 @@ public:
{ {
const float frequency = 30.0f / sampleRate; 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; a0 = 1.f - b1;
z1 = 0.f; z1 = 0.f;
} }


Loading…
Cancel
Save