aboutsummaryrefslogtreecommitdiffstats
path: root/alc/context.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-07-15 04:28:13 -0700
committerChris Robinson <[email protected]>2022-07-15 04:28:13 -0700
commit0b9fc03545f7418be89bb9a8901b342ce84a5f67 (patch)
tree38e5cbf58a3444938116867a8c78e7fc6f7d280b /alc/context.cpp
parent07c2e786f5959f15c50f380f347d345e59218af2 (diff)
Dynamically allocate EffectSlot objects
Diffstat (limited to 'alc/context.cpp')
-rw-r--r--alc/context.cpp4
1 files changed, 2 insertions, 2 deletions
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);