aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.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/alc.cpp
parent07c2e786f5959f15c50f380f347d345e59218af2 (diff)
Dynamically allocate EffectSlot objects
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp4
1 files changed, 2 insertions, 2 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;