From a4b1239f45daa29bb423077da60804d7bf9287eb Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 22 Sep 2011 01:00:44 -0700 Subject: Use cosf and sinf when available Also clear away a few more MSVC precision warnings --- Alc/alcModulator.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Alc/alcModulator.c') diff --git a/Alc/alcModulator.c b/Alc/alcModulator.c index 1a2ffd64..e6f94737 100644 --- a/Alc/alcModulator.c +++ b/Alc/alcModulator.c @@ -52,19 +52,19 @@ typedef struct ALmodulatorState { #define WAVEFORM_FRACBITS 16 #define WAVEFORM_FRACMASK ((1<step) state->step = 1; - cw = cos(2.0*M_PI * Slot->effect.Modulator.HighPassCutoff / - Device->Frequency); + cw = aluCos((ALfloat)M_PI*2.0f * Slot->effect.Modulator.HighPassCutoff / + Device->Frequency); a = (2.0f-cw) - aluSqrt(aluPow(2.0f-cw, 2.0f) - 1.0f); state->iirFilter.coeff = a; -- cgit v1.2.3