diff options
Diffstat (limited to 'Alc/effects/distortion.cpp')
-rw-r--r-- | Alc/effects/distortion.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/effects/distortion.cpp b/Alc/effects/distortion.cpp index e54ae455..1b9c66fa 100644 --- a/Alc/effects/distortion.cpp +++ b/Alc/effects/distortion.cpp @@ -65,7 +65,8 @@ void ALdistortionState::update(const ALCcontext *context, const ALeffectslot *sl const ALCdevice *device{context->Device}; /* Store waveshaper edge settings. */ - const ALfloat edge{minf(std::sin(props->Distortion.Edge * F_PI_2), 0.99f)}; + const ALfloat edge{ + minf(std::sin(al::MathDefs<float>::Pi()*0.5f * props->Distortion.Edge), 0.99f)}; mEdgeCoeff = 2.0f * edge / (1.0f-edge); ALfloat cutoff{props->Distortion.LowpassCutoff}; |