aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alcEcho.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-22 01:00:44 -0700
committerChris Robinson <[email protected]>2011-09-22 01:00:44 -0700
commita4b1239f45daa29bb423077da60804d7bf9287eb (patch)
tree0a9f7025fe1d298f5de58fde0836af9541c3ed01 /Alc/alcEcho.c
parent43350f9066f0c28ac8ff6269783db222508dec45 (diff)
Use cosf and sinf when available
Also clear away a few more MSVC precision warnings
Diffstat (limited to 'Alc/alcEcho.c')
-rw-r--r--Alc/alcEcho.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/alcEcho.c b/Alc/alcEcho.c
index 76249d87..8caeb7ca 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 = cos(2.0*M_PI * LOWPASSFREQCUTOFF / frequency);
+ cw = aluCos((ALfloat)M_PI*2.0f * LOWPASSFREQCUTOFF / frequency);
g = 1.0f - Slot->effect.Echo.Damping;
state->iirFilter.coeff = lpCoeffCalc(g, cw);