aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-01-08 17:00:48 -0800
committerChris Robinson <[email protected]>2020-01-08 17:00:48 -0800
commitb31886ad73937be071409388cb0b8515754a09f1 (patch)
tree4799a8483951c61e04ac27e41b6f9d241b908b4a
parent82720a4b113ca9f4d701558616995a25e2259321 (diff)
Fix blending for the right IR delay
-rw-r--r--alc/hrtf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp
index 61bce202..80d5ebd0 100644
--- a/alc/hrtf.cpp
+++ b/alc/hrtf.cpp
@@ -255,7 +255,7 @@ void GetHrtfCoeffs(const HrtfStore *Hrtf, float elevation, float azimuth, float
Hrtf->delays[idx[2]][0]*blend[2] + Hrtf->delays[idx[3]][0]*blend[3]};
delays[0] = fastf2u(d * float{1.0f/HRIR_DELAY_FRACONE});
d = Hrtf->delays[idx[0]][1]*blend[0] + Hrtf->delays[idx[1]][1]*blend[1] +
- Hrtf->delays[idx[2]][1]*blend[2] + Hrtf->delays[idx[3]][1]*blend[1];
+ Hrtf->delays[idx[2]][1]*blend[2] + Hrtf->delays[idx[3]][1]*blend[3];
delays[1] = fastf2u(d * float{1.0f/HRIR_DELAY_FRACONE});
const ALuint irSize{Hrtf->irSize};