aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-06-21 19:17:39 -0700
committerChris Robinson <[email protected]>2014-06-21 19:17:39 -0700
commitb9462bbe3c8c56c928ef59a6ff2a9b3699557706 (patch)
tree9c280bf56fbcaad417d2c3c1f5aa9b938fd96541
parent81b3395b4146d56375eee2a2ce477a213a991fc2 (diff)
Only set the needed HRTF coefficients
-rw-r--r--Alc/hrtf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/hrtf.c b/Alc/hrtf.c
index e32ae80a..7eb8c2e4 100644
--- a/Alc/hrtf.c
+++ b/Alc/hrtf.c
@@ -295,7 +295,7 @@ ALuint GetMovingHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat a
if(gain > 0.0001f)
{
gain *= 1.0f/32767.0f;
- for(i = 0;i < HRIR_LENGTH;i++)
+ for(i = 0;i < Hrtf->irSize;i++)
{
left = coeffs[i][0] - (coeffStep[i][0] * counter);
right = coeffs[i][1] - (coeffStep[i][1] * counter);
@@ -315,7 +315,7 @@ ALuint GetMovingHrtfCoeffs(const struct Hrtf *Hrtf, ALfloat elevation, ALfloat a
}
else
{
- for(i = 0;i < HRIR_LENGTH;i++)
+ for(i = 0;i < Hrtf->irSize;i++)
{
left = coeffs[i][0] - (coeffStep[i][0] * counter);
right = coeffs[i][1] - (coeffStep[i][1] * counter);