diff options
author | Chris Robinson <[email protected]> | 2022-03-30 04:06:00 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2022-03-30 04:06:00 -0700 |
commit | f15106e77f0baa793320aa23aaf876f39b615500 (patch) | |
tree | b90a46eeaef5b8017a868ca2adc2cfde54da973a /core/voice.cpp | |
parent | a033f8c2749cb9af14297fea7c2115f798892494 (diff) |
Remove the reversed all-pass trick in MixDirectHrtfBase
Given the minimum phase HRTF, it's not going to stay linear phase anyway.
Diffstat (limited to 'core/voice.cpp')
-rw-r--r-- | core/voice.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/core/voice.cpp b/core/voice.cpp index 07400b07..0060737f 100644 --- a/core/voice.cpp +++ b/core/voice.cpp @@ -355,10 +355,7 @@ void DoHrtfMix(const float *samples, const uint DstBufferSize, DirectParams &par { const uint IrSize{Device->mIrSize}; auto &HrtfSamples = Device->HrtfSourceData; - /* Source HRTF mixing needs to include the direct delay so it remains - * aligned with the direct mix's HRTF filtering. - */ - float2 *AccumSamples{Device->HrtfAccumData + HrtfDirectDelay}; + auto &AccumSamples = Device->HrtfAccumData; /* Copy the HRTF history and new input samples into a temp buffer. */ auto src_iter = std::copy(parms.Hrtf.History.begin(), parms.Hrtf.History.end(), |