diff options
author | Chris Robinson <[email protected]> | 2011-05-19 17:57:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-19 17:57:14 -0700 |
commit | 7396aaf2c28ef4e16c3f27d0cc3c06cc09134d41 (patch) | |
tree | 994c34cc602b4fd03d7eee2bc3ca3620c142a771 /Alc/ALu.c | |
parent | 555ccce4eec6afbe3a14fe5a9de6d04e1e74fdcd (diff) |
Fix HRTF elevation calculation
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -669,7 +669,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) { const ALshort *hrtf_left, *hrtf_right; - GetHrtfCoeffs(atan2(Position[1], -Position[2]*ZScale) * (180.0/M_PI), + GetHrtfCoeffs(asin(Position[1]) * (180.0/M_PI), atan2(Position[0], -Position[2]*ZScale) * (180.0/M_PI), &hrtf_left, &hrtf_right); for(i = 0;i < HRTF_LENGTH;i++) |