aboutsummaryrefslogtreecommitdiffstats
path: root/alc/hrtf.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-09-14 19:07:30 -0700
committerChris Robinson <[email protected]>2019-09-14 19:07:30 -0700
commite82c43fb38f13ee3efdda2b7a1395b8182fceb1c (patch)
treedeeb8a673a74fb4b96fa4e2d7052e8d57865ada1 /alc/hrtf.cpp
parentb43cd047ba12f1977c0cf4692a3ea343c7a917d0 (diff)
Fix a copy-paste error
Diffstat (limited to 'alc/hrtf.cpp')
-rw-r--r--alc/hrtf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp
index 3d2f36ea..7d40b16c 100644
--- a/alc/hrtf.cpp
+++ b/alc/hrtf.cpp
@@ -319,7 +319,7 @@ void BuildBFormatHrtf(const HrtfEntry *Hrtf, DirectHrtfState *state, const ALuin
const ALuint iroffset{Hrtf->elev[evidx].irOffset};
/* Calculate azimuth index for this elevation. */
- const float az_norm{(360.0f*pt.Azim) / 360.0f};
+ const float az_norm{(360.0f+pt.Azim) / 360.0f};
const ALuint azidx{float2uint(az_norm*static_cast<float>(azcount) + 0.5f) % azcount};
/* Calculate the index for the impulse response. */