aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c4
-rw-r--r--Alc/mixer.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index fabef277..2758bb90 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -320,7 +320,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
Slot = Device->DefaultSlot;
if(Slot && Slot->effect.type == AL_EFFECT_NULL)
Slot = NULL;
- ALSource->Params.Send[i].Slot = Slot;
+ ALSource->Params.Slot[i] = Slot;
ALSource->Params.Send[i].Gain = WetGain[i] * ListenerGain;
}
@@ -458,7 +458,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
RoomAirAbsorption[i] = AIRABSORBGAINHF;
}
- ALSource->Params.Send[i].Slot = Slot;
+ ALSource->Params.Slot[i] = Slot;
}
/* Transform source to listener space (convert to head relative) */
diff --git a/Alc/mixer.c b/Alc/mixer.c
index c169f5c8..e2e80054 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -336,7 +336,7 @@ static void MixSend_##sampler(ALsource *Source, ALuint sendidx, \
\
increment = Source->Params.Step; \
\
- Slot = Source->Params.Send[sendidx].Slot; \
+ Slot = Source->Params.Slot[sendidx]; \
WetBuffer = Slot->WetBuffer; \
WetClickRemoval = Slot->ClickRemoval; \
WetPendingClicks = Slot->PendingClicks; \
@@ -719,7 +719,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
OutPos, SamplesToDo, BufferSize);
for(i = 0;i < Device->NumAuxSends;i++)
{
- if(!Source->Params.Send[i].Slot)
+ if(!Source->Params.Slot[i])
continue;
Source->Params.WetMix(Source, i, SrcData, DataPosFrac,
OutPos, SamplesToDo, BufferSize);