aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-20 13:26:39 -0800
committerChris Robinson <[email protected]>2018-12-20 13:26:39 -0800
commit7744e4ff72def926a26feca391170d25df39c469 (patch)
treec7e92ed0daab3bd55944d7042c43ae3f667d9b7b /Alc/alu.cpp
parent9fde260df9237cd99967a816332be31ce1524770 (diff)
Pass RealMixParams by reference instead of pointer
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index 75504af5..92502eee 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -128,8 +128,8 @@ void ProcessHrtf(ALCdevice *device, ALsizei SamplesToDo)
device->FOAOut.Buffer, SamplesToDo
);
- int lidx{GetChannelIdxByName(&device->RealOut, FrontLeft)};
- int ridx{GetChannelIdxByName(&device->RealOut, FrontRight)};
+ int lidx{GetChannelIdxByName(device->RealOut, FrontLeft)};
+ int ridx{GetChannelIdxByName(device->RealOut, FrontRight)};
assert(lidx != -1 && ridx != -1);
DirectHrtfState *state{device->mHrtfState.get()};
@@ -163,8 +163,8 @@ void ProcessAmbiUp(ALCdevice *device, ALsizei SamplesToDo)
void ProcessUhj(ALCdevice *device, ALsizei SamplesToDo)
{
- int lidx = GetChannelIdxByName(&device->RealOut, FrontLeft);
- int ridx = GetChannelIdxByName(&device->RealOut, FrontRight);
+ int lidx = GetChannelIdxByName(device->RealOut, FrontLeft);
+ int ridx = GetChannelIdxByName(device->RealOut, FrontRight);
assert(lidx != -1 && ridx != -1);
/* Encode to stereo-compatible 2-channel UHJ output. */
@@ -176,8 +176,8 @@ void ProcessUhj(ALCdevice *device, ALsizei SamplesToDo)
void ProcessBs2b(ALCdevice *device, ALsizei SamplesToDo)
{
- int lidx = GetChannelIdxByName(&device->RealOut, FrontLeft);
- int ridx = GetChannelIdxByName(&device->RealOut, FrontRight);
+ int lidx = GetChannelIdxByName(device->RealOut, FrontLeft);
+ int ridx = GetChannelIdxByName(device->RealOut, FrontRight);
assert(lidx != -1 && ridx != -1);
/* Apply binaural/crossfeed filter */
@@ -696,7 +696,7 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat Azi, const ALfloat Elev
for(ALsizei c{0};c < num_channels;c++)
{
- int idx{GetChannelIdxByName(&Device->RealOut, chans[c].channel)};
+ int idx{GetChannelIdxByName(Device->RealOut, chans[c].channel)};
if(idx != -1) voice->Direct.Params[c].Gains.Target[idx] = DryGain;
}
@@ -843,7 +843,7 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat Azi, const ALfloat Elev
{
if(Device->Dry.Buffer == Device->RealOut.Buffer)
{
- int idx = GetChannelIdxByName(&Device->RealOut, chans[c].channel);
+ int idx = GetChannelIdxByName(Device->RealOut, chans[c].channel);
if(idx != -1) voice->Direct.Params[c].Gains.Target[idx] = DryGain;
}
continue;
@@ -894,7 +894,7 @@ void CalcPanningAndFilters(ALvoice *voice, const ALfloat Azi, const ALfloat Elev
{
if(Device->Dry.Buffer == Device->RealOut.Buffer)
{
- int idx = GetChannelIdxByName(&Device->RealOut, chans[c].channel);
+ int idx = GetChannelIdxByName(Device->RealOut, chans[c].channel);
if(idx != -1) voice->Direct.Params[c].Gains.Target[idx] = DryGain;
}
continue;
@@ -1683,9 +1683,9 @@ void aluMixData(ALCdevice *device, ALvoid *OutBuffer, ALsizei NumSamples)
/* Apply front image stablization for surround sound, if applicable. */
if(device->Stablizer)
{
- const int lidx{GetChannelIdxByName(&device->RealOut, FrontLeft)};
- const int ridx{GetChannelIdxByName(&device->RealOut, FrontRight)};
- const int cidx{GetChannelIdxByName(&device->RealOut, FrontCenter)};
+ const int lidx{GetChannelIdxByName(device->RealOut, FrontLeft)};
+ const int ridx{GetChannelIdxByName(device->RealOut, FrontRight)};
+ const int cidx{GetChannelIdxByName(device->RealOut, FrontCenter)};
assert(lidx >= 0 && ridx >= 0 && cidx >= 0);
ApplyStablizer(device->Stablizer.get(), device->RealOut.Buffer, lidx, ridx, cidx,