diff options
author | Chris Robinson <[email protected]> | 2020-12-27 00:14:58 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-12-27 00:14:58 -0800 |
commit | e20143fcc42e4a39b365b3f1395dfde94a30ac31 (patch) | |
tree | ab9324a678d0d4ea7316836da1629581538a9fa8 /alc/alc.cpp | |
parent | 507cbfa0271e6183a06c5b2eec3465bc37a108e5 (diff) |
Move the WetBuffer reference to EffectSlot
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 224ebce1..b98cc520 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -2113,7 +2113,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) if(ALeffectslot *slot{context->mDefaultSlot.get()}) { - aluInitEffectPanning(slot, context); + aluInitEffectPanning(&slot->mSlot, context); EffectState *state{slot->Effect.State.get()}; state->mOutTarget = device->Dry.Buffer; @@ -2132,7 +2132,7 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList) ALeffectslot *slot{sublist.EffectSlots + idx}; usemask &= ~(1_u64 << idx); - aluInitEffectPanning(slot, context); + aluInitEffectPanning(&slot->mSlot, context); EffectState *state{slot->Effect.State.get()}; state->mOutTarget = device->Dry.Buffer; @@ -2441,7 +2441,7 @@ void ALCcontext::init() { mDefaultSlot = std::unique_ptr<ALeffectslot>{new ALeffectslot{}}; if(mDefaultSlot->init() == AL_NO_ERROR) - aluInitEffectPanning(mDefaultSlot.get(), this); + aluInitEffectPanning(&mDefaultSlot->mSlot, this); else { mDefaultSlot = nullptr; |