aboutsummaryrefslogtreecommitdiffstats
path: root/core/context.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2024-01-03 14:12:28 -0800
committerChris Robinson <[email protected]>2024-01-03 14:12:28 -0800
commited98cbefd014a5166ec086fd276eb283cdab22aa (patch)
tree321f7efe504a010572c15277114883cc72cced34 /core/context.h
parentf8604758bc7cc43efa52a305a578ee9cf474f0d6 (diff)
Allocate context property updates 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 16d1b415..980514b3 100644
--- a/core/context.h
+++ b/core/context.h
@@ -108,6 +108,7 @@ struct ContextBase {
void allocVoiceChanges();
void allocVoiceProps();
void allocEffectSlotProps();
+ void allocContextProps();
ContextParams mParams;
@@ -160,6 +161,12 @@ struct ContextBase {
using EffectSlotPropsCluster = std::unique_ptr<std::array<EffectSlotProps,4>>;
std::vector<EffectSlotPropsCluster> mEffectSlotPropClusters;
+ /* This could be greater than 2, but there should be no way there can be
+ * more than two context property updates in use simultaneously.
+ */
+ using ContextPropsCluster = std::unique_ptr<std::array<ContextProps,2>>;
+ std::vector<ContextPropsCluster> mContextPropClusters;
+
ContextBase(DeviceBase *device);
ContextBase(const ContextBase&) = delete;