diff options
author | Chris Robinson <[email protected]> | 2018-11-26 18:07:52 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-26 18:07:52 -0800 |
commit | 461ef4196ed78a2803325fbda45a035ed5e6cf71 (patch) | |
tree | bf92d6f96cca8e296e88766d3213950a1f797635 /Alc/backends/dsound.cpp | |
parent | 1a9edd4e35ff15bef8662313a9982f62732f5055 (diff) |
Avoid using ATOMIC_LOAD on ALCdevice::Connected
Diffstat (limited to 'Alc/backends/dsound.cpp')
-rw-r--r-- | Alc/backends/dsound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/dsound.cpp b/Alc/backends/dsound.cpp index 3bce5cad..2bb6048a 100644 --- a/Alc/backends/dsound.cpp +++ b/Alc/backends/dsound.cpp @@ -272,7 +272,7 @@ FORCE_ALIGN int ALCdsoundPlayback_mixerProc(ALCdsoundPlayback *self) DWORD LastCursor{0u}; Buffer->GetCurrentPosition(&LastCursor, nullptr); while(!self->mKillNow.load(std::memory_order_acquire) && - ATOMIC_LOAD(&device->Connected, almemory_order_acquire)) + device->Connected.load(std::memory_order_acquire)) { // Get current play cursor DWORD PlayCursor; @@ -901,7 +901,7 @@ ALCuint ALCdsoundCapture_availableSamples(ALCdsoundCapture *self) { ALCdevice *device = STATIC_CAST(ALCbackend, self)->mDevice; - if(!ATOMIC_LOAD(&device->Connected, almemory_order_acquire)) + if(!device->Connected.load(std::memory_order_acquire)) return ll_ringbuffer_read_space(self->Ring); ALsizei FrameSize{FrameSizeFromDevFmt(device->FmtChans, device->FmtType, device->mAmbiOrder)}; |