aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-27 00:14:58 -0800
committerChris Robinson <[email protected]>2020-12-27 00:14:58 -0800
commite20143fcc42e4a39b365b3f1395dfde94a30ac31 (patch)
treeab9324a678d0d4ea7316836da1629581538a9fa8 /alc/alc.cpp
parent507cbfa0271e6183a06c5b2eec3465bc37a108e5 (diff)
Move the WetBuffer reference to EffectSlot
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp6
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;