aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index a8f2f402..c67e8705 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -109,22 +109,18 @@ namespace {
void ProcessHrtf(ALCdevice *device, ALsizei SamplesToDo)
{
- DirectHrtfState *state;
- int lidx, ridx;
- ALsizei c;
-
if(device->AmbiUp)
ambiup_process(device->AmbiUp.get(),
device->Dry.Buffer, device->Dry.NumChannels, device->FOAOut.Buffer,
SamplesToDo
);
- lidx = GetChannelIdxByName(&device->RealOut, FrontLeft);
- ridx = GetChannelIdxByName(&device->RealOut, FrontRight);
+ int lidx{GetChannelIdxByName(&device->RealOut, FrontLeft)};
+ int ridx{GetChannelIdxByName(&device->RealOut, FrontRight)};
assert(lidx != -1 && ridx != -1);
- state = device->Hrtf;
- for(c = 0;c < device->Dry.NumChannels;c++)
+ DirectHrtfState *state{device->mHrtfState};
+ for(ALsizei c{0};c < device->Dry.NumChannels;c++)
{
MixDirectHrtf(device->RealOut.Buffer[lidx], device->RealOut.Buffer[ridx],
device->Dry.Buffer[c], state->Offset, state->IrSize,