Skip to content

Commit

Permalink
Clear the sorted array for the default reverb auxslot
Browse files Browse the repository at this point in the history
  • Loading branch information
kcat committed Feb 11, 2024
1 parent 606a970 commit 50c906f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions alc/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,9 @@ void ALCcontext::init()
else
{
auxslots = EffectSlot::CreatePtrArray(1);
if(auxslots)
{
(*auxslots)[0] = mDefaultSlot->mSlot;
mDefaultSlot->mState = SlotState::Playing;
}
(*auxslots)[0] = mDefaultSlot->mSlot;
std::uninitialized_fill_n(al::to_address(auxslots->end()), 1_uz, nullptr);
mDefaultSlot->mState = SlotState::Playing;
}
mActiveAuxSlots.store(std::move(auxslots), std::memory_order_relaxed);

Expand Down

0 comments on commit 50c906f

Please sign in to comment.