aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/effects/reverb.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-09-13 08:46:48 -0700
committerChris Robinson <[email protected]>2015-09-13 08:46:48 -0700
commitb348abf5c31f58e8de62f0b33b7b110f6448d035 (patch)
treecf3f04b47f39dddf805f22bf24d9e26e17a7931f /Alc/effects/reverb.c
parent2763f4096cf0250931fd75e251fe7d7f2b38763a (diff)
Rename F_2PI to F_TAU
Diffstat (limited to 'Alc/effects/reverb.c')
-rw-r--r--Alc/effects/reverb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/effects/reverb.c b/Alc/effects/reverb.c
index 9170e1c9..1b9c37d9 100644
--- a/Alc/effects/reverb.c
+++ b/Alc/effects/reverb.c
@@ -266,7 +266,7 @@ static inline ALfloat EAXModulation(ALreverbState *State, ALfloat in)
// Calculate the sinus rythm (dependent on modulation time and the
// sampling rate). The center of the sinus is moved to reduce the delay
// of the effect when the time or depth are low.
- sinus = 1.0f - cosf(F_2PI * State->Mod.Index / State->Mod.Range);
+ sinus = 1.0f - cosf(F_TAU * State->Mod.Index / State->Mod.Range);
// The depth determines the range over which to read the input samples
// from, so it must be filtered to reduce the distortion caused by even
@@ -1145,7 +1145,7 @@ static ALvoid ALreverbState_update(ALreverbState *State, ALCdevice *Device, cons
Slot->EffectProps.Reverb.AirAbsorptionGainHF,
Slot->EffectProps.Reverb.DecayTime);
- cw = cosf(F_2PI * hfscale);
+ cw = cosf(F_TAU * hfscale);
// Update the late lines.
UpdateLateLines(Slot->EffectProps.Reverb.Gain, Slot->EffectProps.Reverb.LateReverbGain,
x, Slot->EffectProps.Reverb.Density, Slot->EffectProps.Reverb.DecayTime,