aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-09-23 22:44:34 -0700
committerChris Robinson <[email protected]>2011-09-23 22:44:34 -0700
commitda62f5052890054daa11603eb9bd2522cae8a3df (patch)
treeb1cae1c1d141a05974aef7d7de971fc619e91b20 /Alc/ALu.c
parente84e38cc193be0678f98cf8b5deba1471c77e225 (diff)
Check for asinf and use it
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 07d5fc19..76a987aa 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -716,7 +716,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
// Calculate elevation and azimuth only when the source is not at
// the listener. This prevents +0 and -0 Z from producing
// inconsistent panning.
- ev = asin(Position[1]);
+ ev = aluAsin(Position[1]);
az = atan2(Position[0], -Position[2]*ZScale);
}