diff options
author | Chris Robinson <[email protected]> | 2019-11-10 21:56:19 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-11-10 21:56:19 -0800 |
commit | 0ad512dd512599288f181c6da4c9bcea234811c2 (patch) | |
tree | 4e9307ebd997d48d0dae76934b142538d4cba257 | |
parent | 74cbba511d6b71634d07d44a822c826400fe967d (diff) |
Clear the whole response HRIR before blending
-rw-r--r-- | alc/hrtf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alc/hrtf.cpp b/alc/hrtf.cpp index ac1a19e1..5df15859 100644 --- a/alc/hrtf.cpp +++ b/alc/hrtf.cpp @@ -355,7 +355,7 @@ void BuildBFormatHrtf(const HrtfEntry *Hrtf, DirectHrtfState *state, /* Calculate the blended HRIR coefficients. */ double *coeffout{al::assume_aligned<16>(&res.hrir[0][0])}; - std::fill(coeffout, coeffout + irSize*2, 0.0); + std::fill(coeffout, coeffout + HRIR_LENGTH*2, 0.0); for(ALsizei c{0};c < 4;c++) { const ALfloat *srccoeffs{al::assume_aligned<16>(Hrtf->coeffs[idx[c]*irSize])}; |