From 0b9fc03545f7418be89bb9a8901b342ce84a5f67 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 15 Jul 2022 04:28:13 -0700 Subject: Dynamically allocate EffectSlot objects --- alc/context.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc/context.cpp') 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(); - 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); -- cgit v1.2.3