aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-26 15:35:05 -0800
committerChris Robinson <[email protected]>2018-12-26 15:35:05 -0800
commit4f253a935a14e49a77516a56e0d4c6d6177a56b6 (patch)
tree088b3171e77f6c7863c9bbe851b4f82f4a58fbe3 /Alc/alu.cpp
parentc5be03b51e8fd9bda3a46c345bdc945cfd965c2e (diff)
Handle HRTF coefficients and values by reference where possible
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index 2490f0cb..6655bd81 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -139,10 +139,7 @@ void ProcessHrtf(ALCdevice *device, ALsizei SamplesToDo)
const ALfloat (*Input)[BUFFERSIZE]{device->Dry.Buffer};
DirectHrtfState *state{device->mHrtfState.get()};
for(ALsizei c{0};c < num_chans;c++)
- {
- MixDirectHrtf(LeftOut, RightOut, Input[c], state->Offset, state->IrSize,
- state->Chan[c].Coeffs, state->Chan[c].Values, SamplesToDo);
- }
+ MixDirectHrtf(LeftOut, RightOut, Input[c], state, c, SamplesToDo);
state->Offset += SamplesToDo;
}