aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/pulseaudio.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-26 18:07:52 -0800
committerChris Robinson <[email protected]>2018-11-26 18:07:52 -0800
commit461ef4196ed78a2803325fbda45a035ed5e6cf71 (patch)
treebf92d6f96cca8e296e88766d3213950a1f797635 /Alc/backends/pulseaudio.cpp
parent1a9edd4e35ff15bef8662313a9982f62732f5055 (diff)
Avoid using ATOMIC_LOAD on ALCdevice::Connected
Diffstat (limited to 'Alc/backends/pulseaudio.cpp')
-rw-r--r--Alc/backends/pulseaudio.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/pulseaudio.cpp b/Alc/backends/pulseaudio.cpp
index 560656c5..51b7c0a9 100644
--- a/Alc/backends/pulseaudio.cpp
+++ b/Alc/backends/pulseaudio.cpp
@@ -871,7 +871,7 @@ int PulsePlayback_mixerProc(PulsePlayback *self)
size_t frame_size{pa_frame_size(&self->spec)};
while(!self->mKillNow.load(std::memory_order_acquire) &&
- ATOMIC_LOAD(&device->Connected, almemory_order_acquire))
+ device->Connected.load(std::memory_order_acquire))
{
ssize_t len{static_cast<ssize_t>(pa_stream_writable_size(self->stream))};
if(UNLIKELY(len < 0))
@@ -1676,7 +1676,7 @@ ALCuint PulseCapture_availableSamples(PulseCapture *self)
ALCdevice *device{STATIC_CAST(ALCbackend,self)->mDevice};
size_t readable{self->cap_remain};
- if(ATOMIC_LOAD(&device->Connected, almemory_order_acquire))
+ if(device->Connected.load(std::memory_order_acquire))
{
palock_guard _{self->loop};
size_t got{pa_stream_readable_size(self->stream)};