aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/dsound.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-26 17:31:04 -0800
committerChris Robinson <[email protected]>2018-11-26 17:31:04 -0800
commit04c2802a82e3db8a49b197037ca2e5b2ab74fe8e (patch)
tree1d7b70a38bb4b656933396ad6bb8fe6ca440d90a /Alc/backends/dsound.cpp
parent04cbdbd5695bb8547966cc850ad854b0640ef7b0 (diff)
Rename some struct members
Diffstat (limited to 'Alc/backends/dsound.cpp')
-rw-r--r--Alc/backends/dsound.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Alc/backends/dsound.cpp b/Alc/backends/dsound.cpp
index 4f1186ee..3bce5cad 100644
--- a/Alc/backends/dsound.cpp
+++ b/Alc/backends/dsound.cpp
@@ -191,8 +191,8 @@ struct ALCdsoundPlayback final : public ALCbackend {
IDirectSoundNotify *Notifies{nullptr};
HANDLE NotifyEvent{nullptr};
- std::atomic<ALenum> killNow{AL_TRUE};
- std::thread thread;
+ std::atomic<ALenum> mKillNow{AL_TRUE};
+ std::thread mThread;
};
int ALCdsoundPlayback_mixerProc(ALCdsoundPlayback *self);
@@ -271,7 +271,7 @@ FORCE_ALIGN int ALCdsoundPlayback_mixerProc(ALCdsoundPlayback *self)
bool Playing{false};
DWORD LastCursor{0u};
Buffer->GetCurrentPosition(&LastCursor, nullptr);
- while(!self->killNow.load(std::memory_order_acquire) &&
+ while(!self->mKillNow.load(std::memory_order_acquire) &&
ATOMIC_LOAD(&device->Connected, almemory_order_acquire))
{
// Get current play cursor
@@ -626,8 +626,8 @@ retry_open:
ALCboolean ALCdsoundPlayback_start(ALCdsoundPlayback *self)
{
try {
- self->killNow.store(AL_FALSE, std::memory_order_release);
- self->thread = std::thread(ALCdsoundPlayback_mixerProc, self);
+ self->mKillNow.store(AL_FALSE, std::memory_order_release);
+ self->mThread = std::thread(ALCdsoundPlayback_mixerProc, self);
return ALC_TRUE;
}
catch(std::exception& e) {
@@ -640,10 +640,10 @@ ALCboolean ALCdsoundPlayback_start(ALCdsoundPlayback *self)
void ALCdsoundPlayback_stop(ALCdsoundPlayback *self)
{
- if(self->killNow.exchange(AL_TRUE, std::memory_order_acq_rel) || !self->thread.joinable())
+ if(self->mKillNow.exchange(AL_TRUE, std::memory_order_acq_rel) || !self->mThread.joinable())
return;
- self->thread.join();
+ self->mThread.join();
self->Buffer->Stop();
}