diff options
author | Chris Robinson <[email protected]> | 2019-09-04 23:04:55 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-09-04 23:04:55 -0700 |
commit | ef2769af03825f278b855858681e4cbe55c0734b (patch) | |
tree | 527d0ffb2be392ce90824cacfb3466ca1d409793 /alc/alcontext.h | |
parent | c47a6d2279b80031db9b012713c27885b2d14047 (diff) |
Use a normal vector for the voices array
Diffstat (limited to 'alc/alcontext.h')
-rw-r--r-- | alc/alcontext.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/alc/alcontext.h b/alc/alcontext.h index c91d0a21..dd622654 100644 --- a/alc/alcontext.h +++ b/alc/alcontext.h @@ -127,8 +127,7 @@ struct ALCcontext : public al::intrusive_ref<ALCcontext> { std::atomic<ALvoiceProps*> mFreeVoiceProps{nullptr}; std::atomic<ALeffectslotProps*> mFreeEffectslotProps{nullptr}; - std::unique_ptr<al::FlexArray<ALvoice>> mVoices{nullptr}; - std::atomic<ALuint> mVoiceCount{0u}; + al::vector<ALvoice> mVoices; using ALeffectslotArray = al::FlexArray<ALeffectslot*>; std::atomic<ALeffectslotArray*> mActiveAuxSlots{nullptr}; @@ -163,8 +162,6 @@ struct ALCcontext : public al::intrusive_ref<ALCcontext> { */ bool deinit(); - void allocVoices(size_t num_voices); - /** * Defers/suspends updates for the given context's listener and sources. * This does *NOT* stop mixing, but rather prevents certain property |