diff options
author | Chris Robinson <[email protected]> | 2011-09-22 01:00:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-09-22 01:00:44 -0700 |
commit | a4b1239f45daa29bb423077da60804d7bf9287eb (patch) | |
tree | 0a9f7025fe1d298f5de58fde0836af9541c3ed01 /Alc/alcEcho.c | |
parent | 43350f9066f0c28ac8ff6269783db222508dec45 (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.c | 2 |
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); |