aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALu.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-09-21 05:42:35 -0700
committerChris Robinson <[email protected]>2017-09-21 05:42:35 -0700
commit90cedbea49e9756d97033962f6c1145991bc7095 (patch)
treedf6c91ac4c7f17b33b9153994ccf3fbaf3ce9a70 /Alc/ALu.c
parent0b243f1aaf5251823bb0fda7fbb9cf30706fdf33 (diff)
Pass the context to the auxiliary effect update method
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r--Alc/ALu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 29accf57..dc14815d 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -320,7 +320,7 @@ static ALboolean CalcListenerParams(ALCcontext *Context)
return AL_TRUE;
}
-static ALboolean CalcEffectSlotParams(ALeffectslot *slot, ALCdevice *device)
+static ALboolean CalcEffectSlotParams(ALeffectslot *slot, ALCcontext *context)
{
struct ALeffectslotProps *props;
ALeffectState *state;
@@ -355,7 +355,7 @@ static ALboolean CalcEffectSlotParams(ALeffectslot *slot, ALCdevice *device)
props->State = slot->Params.EffectState;
slot->Params.EffectState = state;
- V(state,update)(device, slot, &props->Props);
+ V(state,update)(context, slot, &props->Props);
ATOMIC_REPLACE_HEAD(struct ALeffectslotProps*, &slot->FreeList, props);
return AL_TRUE;
@@ -1468,7 +1468,7 @@ static void UpdateContextSources(ALCcontext *ctx, const struct ALeffectslotArray
{
ALboolean force = CalcListenerParams(ctx);
for(i = 0;i < slots->count;i++)
- force |= CalcEffectSlotParams(slots->slot[i], ctx->Device);
+ force |= CalcEffectSlotParams(slots->slot[i], ctx);
voice = ctx->Voices;
voice_end = voice + ctx->VoiceCount;