aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/alc.cpp')
-rw-r--r--Alc/alc.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Alc/alc.cpp b/Alc/alc.cpp
index fb7f9c67..a5353cb9 100644
--- a/Alc/alc.cpp
+++ b/Alc/alc.cpp
@@ -2327,9 +2327,13 @@ static ALvoid InitContext(ALCcontext *Context)
//Validate Context
if(Context->DefaultSlot)
{
+ static constexpr int count{1};
+ /* Allocate twice as much space for effect slots so the mixer has a
+ * place to sort them.
+ */
auxslots = static_cast<ALeffectslotArray*>(al_calloc(DEF_ALIGN,
- FAM_SIZE(ALeffectslotArray, slot, 1)));
- auxslots->count = 1;
+ FAM_SIZE(ALeffectslotArray, slot, count*2)));
+ auxslots->count = count;
auxslots->slot[0] = Context->DefaultSlot.get();
}
else