diff options
author | Chris Robinson <[email protected]> | 2020-03-28 17:20:38 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-03-28 18:15:05 -0700 |
commit | 963d9b761b53c270fc8b7e91e32b2fe7b79b51be (patch) | |
tree | 94f1c70ce6af21c5703942bde09c1d62a67af36e /alc/alcontext.h | |
parent | fb076125454efb92fb8c9684dadf0f338d70aa32 (diff) |
Rename ALvoice and related structs to Voice
Diffstat (limited to 'alc/alcontext.h')
-rw-r--r-- | alc/alcontext.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/alc/alcontext.h b/alc/alcontext.h index 2ec3cf25..7b67bff7 100644 --- a/alc/alcontext.h +++ b/alc/alcontext.h @@ -57,8 +57,8 @@ struct ALcontextProps { struct VoiceChange { - ALvoice *mOldVoice{nullptr}; - ALvoice *mVoice{nullptr}; + Voice *mOldVoice{nullptr}; + Voice *mVoice{nullptr}; ALuint mSourceID{0}; ALenum mState{0}; @@ -137,7 +137,7 @@ struct ALCcontext : public al::intrusive_ref<ALCcontext> { */ std::atomic<ALcontextProps*> mFreeContextProps{nullptr}; std::atomic<ALlistenerProps*> mFreeListenerProps{nullptr}; - std::atomic<ALvoiceProps*> mFreeVoiceProps{nullptr}; + std::atomic<VoicePropsItem*> mFreeVoiceProps{nullptr}; std::atomic<ALeffectslotProps*> mFreeEffectslotProps{nullptr}; /* Asynchronous voice change actions are processed as a linked list of @@ -159,20 +159,20 @@ struct ALCcontext : public al::intrusive_ref<ALCcontext> { void allocVoiceChanges(size_t addcount); - using VoiceCluster = std::unique_ptr<ALvoice[]>; + using VoiceCluster = std::unique_ptr<Voice[]>; al::vector<VoiceCluster> mVoiceClusters; - using ALvoiceArray = al::FlexArray<ALvoice*>; - std::atomic<ALvoiceArray*> mVoices{}; + using VoiceArray = al::FlexArray<Voice*>; + std::atomic<VoiceArray*> mVoices{}; std::atomic<size_t> mActiveVoiceCount{}; void allocVoices(size_t addcount); - al::span<ALvoice*> getVoicesSpan() const noexcept + al::span<Voice*> getVoicesSpan() const noexcept { return {mVoices.load(std::memory_order_relaxed)->data(), mActiveVoiceCount.load(std::memory_order_relaxed)}; } - al::span<ALvoice*> getVoicesSpanAcquired() const noexcept + al::span<Voice*> getVoicesSpanAcquired() const noexcept { return {mVoices.load(std::memory_order_acquire)->data(), mActiveVoiceCount.load(std::memory_order_acquire)}; |