From 82675c018dab303ce39665512f0ae847d01289da Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 17 May 2016 18:23:41 -0700 Subject: [PATCH] Update the right effect state when the device is reset --- Alc/ALc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/ALc.c b/Alc/ALc.c index fa9f50d9..c61a58f3 100644 --- a/Alc/ALc.c +++ b/Alc/ALc.c @@ -2043,7 +2043,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) if(device->DefaultSlot) { ALeffectslot *slot = device->DefaultSlot; - ALeffectState *state = slot->Params.EffectState; + ALeffectState *state = slot->Effect.State; state->OutBuffer = device->Dry.Buffer; state->OutChannels = device->Dry.NumChannels; @@ -2065,7 +2065,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList) for(pos = 0;pos < context->EffectSlotMap.size;pos++) { ALeffectslot *slot = context->EffectSlotMap.array[pos].value; - ALeffectState *state = slot->Params.EffectState; + ALeffectState *state = slot->Effect.State; state->OutBuffer = device->Dry.Buffer; state->OutChannels = device->Dry.NumChannels; -- 2.11.4.GIT