From 310770c53125691135210d76128b5c76ea5a777a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 18 Nov 2018 02:52:46 -0800 Subject: Add and use new/delete operators to ALeffectslot --- OpenAL32/Include/alAuxEffectSlot.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'OpenAL32/Include/alAuxEffectSlot.h') diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index 99060b74..38900695 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -4,6 +4,7 @@ #include "alMain.h" #include "alEffect.h" +#include "almalloc.h" #include "atomic.h" #ifdef __cplusplus @@ -99,7 +100,7 @@ struct ALeffectslotProps { }; -typedef struct ALeffectslot { +struct ALeffectslot { ALfloat Gain; ALboolean AuxSendAuto; @@ -148,7 +149,9 @@ typedef struct ALeffectslot { * output (FOAOut). */ alignas(16) ALfloat WetBuffer[MAX_EFFECT_CHANNELS][BUFFERSIZE]; -} ALeffectslot; + + DEF_NEWDEL(ALeffectslot) +}; ALenum InitEffectSlot(ALeffectslot *slot); void DeinitEffectSlot(ALeffectslot *slot); -- cgit v1.2.3