aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/autowah.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-08 16:31:23 -0700
committerChris Robinson <[email protected]>2013-10-08 16:31:23 -0700
commita421e515befd1916d57e7668ee98c1a5dfe63dab (patch)
tree68d69e41030ccfec34ac89175edec66e99b7660b /Alc/effects/autowah.c
parent11365b42c7fedaef61d7123c390c429260eae52f (diff)
Use a helper macro for pi*2
Diffstat (limited to 'Alc/effects/autowah.c')
-rw-r--r--Alc/effects/autowah.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/effects/autowah.c b/Alc/effects/autowah.c
index 9a3f8b94..29ec02af 100644
--- a/Alc/effects/autowah.c
+++ b/Alc/effects/autowah.c
@@ -111,7 +111,7 @@ static ALvoid ALautowahState_process(ALautowahState *state, ALuint SamplesToDo,
if((state->lfo++) % 30 == 0)
{
/* Using custom low-pass filter coefficients, to handle the resonance and peak-gain properties. */
- frequency = (1.0f + cosf(state->lfo * (1.0f / lerp(1.0f, 4.0f, state->AttackTime * state->ReleaseTime)) * 2.0f * F_PI / state->Frequency)) / OCTAVE;
+ frequency = (1.0f + cosf(state->lfo * (1.0f / lerp(1.0f, 4.0f, state->AttackTime * state->ReleaseTime)) * F_2PI / state->Frequency)) / OCTAVE;
frequency = expf((frequency - 1.0f) * 6.0f);
/* computing cutoff frequency and peak gain */