aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-29 11:28:38 -0700
committerChris Robinson <[email protected]>2019-03-29 11:33:04 -0700
commitcc91490b6104b5304655c6e4367371ea929d20bb (patch)
treed536557a349bc9bbd85fcc215456d96ab70fc13b /Alc/alu.cpp
parentfe7918465ed203b4731140aaf13c00d2aa9b1041 (diff)
Use a temporary buffer for HRTF filter accumulation
Similar to the history buffer, to avoid using the state buffer as a ring buffer.
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index 11ef209b..1939b7b0 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -134,8 +134,8 @@ void ProcessHrtf(ALCdevice *device, const ALsizei SamplesToDo)
ALfloat *RightOut{device->RealOut.Buffer[ridx]};
DirectHrtfState *state{device->mHrtfState.get()};
- MixDirectHrtf(LeftOut, RightOut, device->Dry.Buffer, state, device->Dry.NumChannels,
- SamplesToDo);
+ MixDirectHrtf(LeftOut, RightOut, device->Dry.Buffer, device->HrtfAccumData, state,
+ device->Dry.NumChannels, SamplesToDo);
state->Offset += SamplesToDo;
}