diff options
author | Chris Robinson <[email protected]> | 2014-06-21 19:17:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-06-21 19:17:39 -0700 |
commit | b9462bbe3c8c56c928ef59a6ff2a9b3699557706 (patch) | |
tree | 9c280bf56fbcaad417d2c3c1f5aa9b938fd96541 | |
parent | 81b3395b4146d56375eee2a2ce477a213a991fc2 (diff) |
Only set the needed HRTF coefficients
-rw-r--r-- | Alc/hrtf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |