aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/alu.cpp')
-rw-r--r--alc/alu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp
index 254fe4b5..f5504b5a 100644
--- a/alc/alu.cpp
+++ b/alc/alu.cpp
@@ -444,8 +444,8 @@ bool CalcEffectSlotParams(EffectSlot *slot, EffectSlot **sorted_slots, ContextBa
}
EffectState *state{props->State.release()};
- EffectState *oldstate{slot->mEffectState};
- slot->mEffectState = state;
+ EffectState *oldstate{slot->mEffectState.release()};
+ slot->mEffectState.reset(state);
/* Only release the old state if it won't get deleted, since we can't be
* deleting/freeing anything in the mixer.
@@ -1775,7 +1775,7 @@ void ProcessContexts(DeviceBase *device, const uint SamplesToDo)
for(const EffectSlot *slot : sorted_slots)
{
- EffectState *state{slot->mEffectState};
+ EffectState *state{slot->mEffectState.get()};
state->process(SamplesToDo, slot->Wet.Buffer, state->mOutTarget);
}
}