aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/panning.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-06-29 02:12:36 -0700
committerChris Robinson <[email protected]>2012-06-29 02:12:36 -0700
commit6bd535bed0101bbe91c4a1a7dc4f93167e40810c (patch)
tree6ff7dd6ab5a18cb05d8b1ebc1a92c4b430d2b838 /Alc/panning.c
parent524c88c4025391aa17752d329cc2d548c9a6d261 (diff)
Use wrappers for float-typed math functions
Diffstat (limited to 'Alc/panning.c')
-rw-r--r--Alc/panning.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/panning.c b/Alc/panning.c
index 4bdaf6b0..6b412f89 100644
--- a/Alc/panning.c
+++ b/Alc/panning.c
@@ -181,8 +181,8 @@ ALvoid ComputeAngleGains(const ALCdevice *device, ALfloat angle, ALfloat hwidth,
/* Sound is between speakers i and i+1 */
a = (angle-SpeakerAngle[i]) /
(SpeakerAngle[i+1]-SpeakerAngle[i]);
- gains[Speaker2Chan[i]] = aluSqrt(1.0f-a) * ingain;
- gains[Speaker2Chan[i+1]] = aluSqrt( a) * ingain;
+ gains[Speaker2Chan[i]] = sqrtf(1.0f-a) * ingain;
+ gains[Speaker2Chan[i+1]] = sqrtf( a) * ingain;
return;
}
}
@@ -191,12 +191,12 @@ ALvoid ComputeAngleGains(const ALCdevice *device, ALfloat angle, ALfloat hwidth,
angle += F_PI*2.0f;
a = (angle-SpeakerAngle[i]) /
(F_PI*2.0f + SpeakerAngle[0]-SpeakerAngle[i]);
- gains[Speaker2Chan[i]] = aluSqrt(1.0f-a) * ingain;
- gains[Speaker2Chan[0]] = aluSqrt( a) * ingain;
+ gains[Speaker2Chan[i]] = sqrtf(1.0f-a) * ingain;
+ gains[Speaker2Chan[0]] = sqrtf( a) * ingain;
return;
}
- if(aluFabs(angle)+hwidth > F_PI)
+ if(fabsf(angle)+hwidth > F_PI)
{
/* The coverage area would go outside of -pi...+pi. Instead, rotate the
* speaker angles so it would be as if angle=0, and keep them wrapped
@@ -329,7 +329,7 @@ ALvoid ComputeAngleGains(const ALCdevice *device, ALfloat angle, ALfloat hwidth,
for(i = 0;i < device->NumChan;i++)
{
enum Channel chan = device->Speaker2Chan[i];
- gains[chan] = aluSqrt(tmpgains[chan]) * ingain;
+ gains[chan] = sqrtf(tmpgains[chan]) * ingain;
}
}