diff options
author | Chris Robinson <[email protected]> | 2017-03-27 23:16:23 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-03-27 23:16:23 -0700 |
commit | 70aefa75e2253ef7a93cdd6412e8523663d3c6e9 (patch) | |
tree | 82e740fbebe8d1ebe71082d3b40f807247484618 /OpenAL32/Include/alAuxEffectSlot.h | |
parent | b49a79a15fa16e93e2e2ff1fc76dbae0425fd503 (diff) |
Use an array of pointers for effects instead of a linked list
Diffstat (limited to 'OpenAL32/Include/alAuxEffectSlot.h')
-rw-r--r-- | OpenAL32/Include/alAuxEffectSlot.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h index c6e40a55..7f95dc91 100644 --- a/OpenAL32/Include/alAuxEffectSlot.h +++ b/OpenAL32/Include/alAuxEffectSlot.h @@ -75,6 +75,12 @@ static const struct ALeffectStateFactoryVtable T##_ALeffectStateFactory_vtable = #define MAX_EFFECT_CHANNELS (4) +struct ALeffectslotArray { + ALsizei count; + struct ALeffectslot *slot[]; +}; + + struct ALeffectslotProps { ALfloat Gain; ALboolean AuxSendAuto; @@ -134,8 +140,6 @@ typedef struct ALeffectslot { * first-order device output (FOAOut). */ alignas(16) ALfloat WetBuffer[MAX_EFFECT_CHANNELS][BUFFERSIZE]; - - ATOMIC(struct ALeffectslot*) next; } ALeffectslot; inline void LockEffectSlotsRead(ALCcontext *context) |