From e82c43fb38f13ee3efdda2b7a1395b8182fceb1c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 14 Sep 2019 19:07:30 -0700 Subject: Fix a copy-paste error --- alc/hrtf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(azcount) + 0.5f) % azcount}; /* Calculate the index for the impulse response. */ -- cgit v1.2.3