diff options
author | Chris Robinson <[email protected]> | 2020-05-20 11:22:53 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-05-20 11:22:53 -0700 |
commit | e880c04f321ec3244ac4987c9c7a865ccbda5a80 (patch) | |
tree | d9f105dd49b8e51692503722b9eafc65603e93bc /alc/mixer | |
parent | 200c164d786a2fd33962b2fcc5ded176e47a0f3d (diff) |
Clarify a comment about the band-splitter
Diffstat (limited to 'alc/mixer')
-rw-r--r-- | alc/mixer/hrtfbase.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/alc/mixer/hrtfbase.h b/alc/mixer/hrtfbase.h index 8db26d70..615152a8 100644 --- a/alc/mixer/hrtfbase.h +++ b/alc/mixer/hrtfbase.h @@ -108,7 +108,8 @@ inline void MixDirectHrtfBase(FloatBufferLine &LeftOut, FloatBufferLine &RightOu * padding. The delay serves to reduce the error caused by the IIR * filter's phase shift on a partial input. */ - al::span<float> tempbuf{State->mTemp.data(), HRTF_DIRECT_DELAY+BufferSize}; + al::span<float> tempbuf{al::assume_aligned<16>(State->mTemp.data()), + HRTF_DIRECT_DELAY+BufferSize}; auto tmpiter = std::reverse_copy(input.begin(), input.begin()+BufferSize, tempbuf.begin()); std::copy(chan_iter->mDelay.cbegin(), chan_iter->mDelay.cend(), tmpiter); @@ -123,9 +124,9 @@ inline void MixDirectHrtfBase(FloatBufferLine &LeftOut, FloatBufferLine &RightOu tempbuf = tempbuf.subspan<HRTF_DIRECT_DELAY>(); std::reverse(tempbuf.begin(), tempbuf.end()); - /* Now apply the band-splitter. This applies the normal phase shift, - * which cancels out with the backwards phase shift to get the original - * phase on the scaled signal. + /* Now apply the HF scale with the band-splitter. This applies the + * forward phase shift, which cancels out with the backwards phase + * shift to get the original phase on the scaled signal. */ chan_iter->mSplitter.processHfScale(tempbuf, chan_iter->mHfScale); |