aboutsummaryrefslogtreecommitdiffstats
path: root/core/context.h
diff options
context:
space:
mode:
authorChris Robinson <chris.kcat@gmail.com>2022-07-15 06:14:25 -0700
committerChris Robinson <chris.kcat@gmail.com>2022-07-15 06:14:25 -0700
commit0f4679981b575cc76158126dec7d9bdda3ba1c29 (patch)
tree77e9176befdeb963e7dd791fc50df3db34f789bc /core/context.h
parent0b9fc03545f7418be89bb9a8901b342ce84a5f67 (diff)
Allocate EffectSlots in clusters
Diffstat (limited to 'core/context.h')
-rw-r--r--core/context.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/context.h b/core/context.h
index f5768629..d2e6b546 100644
--- a/core/context.h
+++ b/core/context.h
@@ -163,6 +163,13 @@ struct ContextBase {
al::vector<VoicePropsCluster> mVoicePropClusters;
+ static constexpr size_t EffectSlotClusterSize{4};
+ EffectSlot *getEffectSlot();
+
+ using EffectSlotCluster = std::unique_ptr<EffectSlot[]>;
+ al::vector<EffectSlotCluster> mEffectSlotClusters;
+
+
ContextBase(DeviceBase *device);
ContextBase(const ContextBase&) = delete;
ContextBase& operator=(const ContextBase&) = delete;