diff options
Diffstat (limited to 'alc/effectslot.cpp')
-rw-r--r-- | alc/effectslot.cpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/alc/effectslot.cpp b/alc/effectslot.cpp deleted file mode 100644 index 51fb8d46..00000000 --- a/alc/effectslot.cpp +++ /dev/null @@ -1,25 +0,0 @@ - -#include "config.h" - -#include "effectslot.h" - -#include <stddef.h> - -#include "almalloc.h" -#include "context.h" - - -EffectSlotArray *EffectSlot::CreatePtrArray(size_t count) noexcept -{ - /* Allocate space for twice as many pointers, so the mixer has scratch - * space to store a sorted list during mixing. - */ - void *ptr{al_calloc(alignof(EffectSlotArray), EffectSlotArray::Sizeof(count*2))}; - return al::construct_at(static_cast<EffectSlotArray*>(ptr), count); -} - -EffectSlot::~EffectSlot() -{ - if(mWetBuffer) - mWetBuffer->mInUse = false; -} |