aboutsummaryrefslogtreecommitdiffstats
path: root/alc
diff options
context:
space:
mode:
Diffstat (limited to 'alc')
-rw-r--r--alc/alc.cpp4
-rw-r--r--alc/context.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 07c9372c..3ce14dac 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -2226,7 +2226,7 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
if(ALeffectslot *slot{context->mDefaultSlot.get()})
{
- aluInitEffectPanning(&slot->mSlot, context);
+ aluInitEffectPanning(slot->mSlot, context);
EffectState *state{slot->Effect.State.get()};
state->mOutTarget = device->Dry.Buffer;
@@ -2245,7 +2245,7 @@ ALCenum UpdateDeviceParams(ALCdevice *device, const int *attrList)
ALeffectslot *slot{sublist.EffectSlots + idx};
usemask &= ~(1_u64 << idx);
- aluInitEffectPanning(&slot->mSlot, context);
+ aluInitEffectPanning(slot->mSlot, context);
EffectState *state{slot->Effect.State.get()};
state->mOutTarget = device->Dry.Buffer;
diff --git a/alc/context.cpp b/alc/context.cpp
index a6b56d1d..456e42da 100644
--- a/alc/context.cpp
+++ b/alc/context.cpp
@@ -143,7 +143,7 @@ void ALCcontext::init()
if(sDefaultEffect.type != AL_EFFECT_NULL && mDevice->Type == DeviceType::Playback)
{
mDefaultSlot = std::make_unique<ALeffectslot>();
- aluInitEffectPanning(&mDefaultSlot->mSlot, this);
+ aluInitEffectPanning(mDefaultSlot->mSlot, this);
}
EffectSlotArray *auxslots;
@@ -152,7 +152,7 @@ void ALCcontext::init()
else
{
auxslots = EffectSlot::CreatePtrArray(1);
- (*auxslots)[0] = &mDefaultSlot->mSlot;
+ (*auxslots)[0] = mDefaultSlot->mSlot;
mDefaultSlot->mState = SlotState::Playing;
}
mActiveAuxSlots.store(auxslots, std::memory_order_relaxed);