diff options
author | Chris Robinson <[email protected]> | 2016-05-17 18:23:41 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-05-17 18:23:41 -0700 |
commit | 82675c018dab303ce39665512f0ae847d01289da (patch) | |
tree | d068ef5fb4f3905ff2bba118ae06f0e85ef1d6a8 /Alc/ALc.c | |
parent | 82720c47593a9d849b10d72a7d21451cc1b98d51 (diff) |
Update the right effect state when the device is reset
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |