diff options
author | Chris Robinson <[email protected]> | 2020-02-26 01:48:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-02-26 01:48:59 -0800 |
commit | 872096958bbe358c3b1d0e9de490d40b9c3ea95f (patch) | |
tree | ffecc825e38d0f08e8bab7606be17fd82cd423f1 /alc | |
parent | 814f80ec59d04d2aa39dd391e35eac7405eb94cb (diff) |
Rename the voice's PendingStop to PendingChange
Diffstat (limited to 'alc')
-rw-r--r-- | alc/alu.cpp | 4 | ||||
-rw-r--r-- | alc/voice.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/alc/alu.cpp b/alc/alu.cpp index 46720cb0..4d9c6f57 100644 --- a/alc/alu.cpp +++ b/alc/alu.cpp @@ -1639,7 +1639,7 @@ void ProcessVoiceChanges(ALCcontext *ctx) ALvoice::State oldvstate{ALvoice::Playing}; sendevt = voice->mPlayState.compare_exchange_strong(oldvstate, ALvoice::Stopping, std::memory_order_relaxed, std::memory_order_acquire); - voice->mPendingStop.store(false, std::memory_order_release); + voice->mPendingChange.store(false, std::memory_order_release); } /* AL_INITIAL state change events are always sent, even if the * voice is already stopped or even if there is no voice. @@ -1669,7 +1669,7 @@ void ProcessVoiceChanges(ALCcontext *ctx) ALvoice::State oldvstate{ALvoice::Playing}; sendevt = !oldvoice->mPlayState.compare_exchange_strong(oldvstate, ALvoice::Stopping, std::memory_order_relaxed, std::memory_order_acquire); - oldvoice->mPendingStop.store(false, std::memory_order_release); + oldvoice->mPendingChange.store(false, std::memory_order_release); } else sendevt = true; diff --git a/alc/voice.h b/alc/voice.h index 555874c4..88e15c2e 100644 --- a/alc/voice.h +++ b/alc/voice.h @@ -203,7 +203,7 @@ struct ALvoice { std::atomic<ALuint> mSourceID{0u}; std::atomic<State> mPlayState{Stopped}; - std::atomic<bool> mPendingStop{false}; + std::atomic<bool> mPendingChange{false}; /** * Source offset in samples, relative to the currently playing buffer, NOT |