aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alAuxEffectSlot.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-01-11 07:28:44 -0800
committerChris Robinson <[email protected]>2019-01-11 07:28:44 -0800
commit81e7222633fefd29890e8f1e18af86c4985604f4 (patch)
tree33271bf0aae1c7acfac1cadb5139e8f87a976fd6 /OpenAL32/Include/alAuxEffectSlot.h
parent8aedaea5fb92d9cfed0a3e1f959f903fca713ec3 (diff)
Use a flexible array for the active effect slots
Diffstat (limited to 'OpenAL32/Include/alAuxEffectSlot.h')
-rw-r--r--OpenAL32/Include/alAuxEffectSlot.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenAL32/Include/alAuxEffectSlot.h b/OpenAL32/Include/alAuxEffectSlot.h
index cf4cd5d0..e761280a 100644
--- a/OpenAL32/Include/alAuxEffectSlot.h
+++ b/OpenAL32/Include/alAuxEffectSlot.h
@@ -44,7 +44,7 @@ struct EffectStateFactory {
#define MAX_EFFECT_CHANNELS (4)
-using ALeffectslotArray = al::vector<ALeffectslot*>;
+using ALeffectslotArray = al::FlexArray<ALeffectslot*>;
struct ALeffectslotProps {
@@ -118,6 +118,8 @@ struct ALeffectslot {
ALeffectslot& operator=(const ALeffectslot&) = delete;
~ALeffectslot();
+ static ALeffectslotArray *CreatePtrArray(size_t count) noexcept;
+
DEF_NEWDEL(ALeffectslot)
};