From c9537abfb1a9d1c94d6bf9aa0e6cfa2cda1ae94b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 17 Dec 2021 04:07:00 -0800 Subject: Allocate voice properties in clusters --- core/context.h | 4 ++++ core/voice.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'core') diff --git a/core/context.h b/core/context.h index 155ee167..0e531db0 100644 --- a/core/context.h +++ b/core/context.h @@ -122,6 +122,7 @@ struct ContextBase { std::atomic mCurrentVoiceChange{}; void allocVoiceChanges(size_t addcount); + void allocVoiceProps(); ContextParams mParams; @@ -162,6 +163,9 @@ struct ContextBase { using VoiceCluster = std::unique_ptr; al::vector mVoiceClusters; + using VoicePropsCluster = std::unique_ptr; + al::vector mVoicePropClusters; + ContextBase(DeviceBase *device); ContextBase(const ContextBase&) = delete; diff --git a/core/voice.h b/core/voice.h index 8b5ae37f..d7168fb9 100644 --- a/core/voice.h +++ b/core/voice.h @@ -252,7 +252,7 @@ struct Voice { al::vector mChans{2}; Voice() = default; - ~Voice() { delete mUpdate.exchange(nullptr, std::memory_order_acq_rel); } + ~Voice() = default; Voice(const Voice&) = delete; Voice& operator=(const Voice&) = delete; -- cgit v1.2.3