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/panning.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Alc/panning.c') diff --git a/Alc/panning.c b/Alc/panning.c index 983d3ef6..f600284d 100644 --- a/Alc/panning.c +++ b/Alc/panning.c @@ -295,8 +295,8 @@ ALvoid aluInitPanning(ALCdevice *Device) /* source between speaker s and speaker s+1 */ Alpha = M_PI_2 * (Theta-SpeakerAngle[s]) / (SpeakerAngle[s+1]-SpeakerAngle[s]); - PanningLUT[Speaker2Chan[s]] = cos(Alpha); - PanningLUT[Speaker2Chan[s+1]] = sin(Alpha); + PanningLUT[Speaker2Chan[s]] = aluCos(Alpha); + PanningLUT[Speaker2Chan[s+1]] = aluSin(Alpha); break; } } @@ -307,8 +307,8 @@ ALvoid aluInitPanning(ALCdevice *Device) Theta += 2.0f * M_PI; Alpha = M_PI_2 * (Theta-SpeakerAngle[s]) / (2.0f * M_PI + SpeakerAngle[0]-SpeakerAngle[s]); - PanningLUT[Speaker2Chan[s]] = cos(Alpha); - PanningLUT[Speaker2Chan[0]] = sin(Alpha); + PanningLUT[Speaker2Chan[s]] = aluCos(Alpha); + PanningLUT[Speaker2Chan[0]] = aluSin(Alpha); } } } -- cgit v1.2.3