diff options
author | Chris Robinson <[email protected]> | 2011-09-22 11:17:01 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-22 11:17:01 -0700 |
commit | 470b506952c83580cfae5c3dc94a3b359c900dea (patch) | |
tree | 149d982293f816d6bf240f0491013573449f8f3d /Alc/alcEcho.c | |
parent | de8a447ea50aba854df956716c6abdd846916d5f (diff) |
Use macros for float-typed PI values, to avoid manual casts everywhere
Diffstat (limited to 'Alc/alcEcho.c')
-rw-r--r-- | Alc/alcEcho.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c index 8caeb7ca..c77e185e 100644 --- a/Alc/alcEcho.c +++ b/Alc/alcEcho.c @@ -111,7 +111,7 @@ static ALvoid EchoUpdate(ALeffectState *effect, ALCcontext *Context, const ALeff state->FeedGain = Slot->effect.Echo.Feedback; - cw = aluCos((ALfloat)M_PI*2.0f * LOWPASSFREQCUTOFF / frequency); + cw = aluCos(F_PI*2.0f * LOWPASSFREQCUTOFF / frequency); g = 1.0f - Slot->effect.Echo.Damping; state->iirFilter.coeff = lpCoeffCalc(g, cw); |