aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-22 06:59:32 -0800
committerChris Robinson <[email protected]>2018-11-22 06:59:32 -0800
commitab6db9a589ac5ad8daa498e9fedb4de66cbb1948 (patch)
treefc6e8749da635aa00ed8cbf199239b28ec5fff39 /Alc/alu.cpp
parent9d73e03aaa6d51d6b787b0d576760f782fc3394f (diff)
Clean up some unnecessary specifiers
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,