aboutsummaryrefslogtreecommitdiffstats
path: root/core/voice.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-03-30 04:06:00 -0700
committerChris Robinson <[email protected]>2022-03-30 04:06:00 -0700
commitf15106e77f0baa793320aa23aaf876f39b615500 (patch)
treeb90a46eeaef5b8017a868ca2adc2cfde54da973a /core/voice.cpp
parenta033f8c2749cb9af14297fea7c2115f798892494 (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.cpp5
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(),