aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/alsa.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/alsa.cpp
parent1a9edd4e35ff15bef8662313a9982f62732f5055 (diff)
Avoid using ATOMIC_LOAD on ALCdevice::Connected
Diffstat (limited to 'Alc/backends/alsa.cpp')
-rw-r--r--Alc/backends/alsa.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/backends/alsa.cpp b/Alc/backends/alsa.cpp
index 20ffc559..629038b8 100644
--- a/Alc/backends/alsa.cpp
+++ b/Alc/backends/alsa.cpp
@@ -1150,7 +1150,7 @@ ALCenum ALCcaptureAlsa_captureSamples(ALCcaptureAlsa *self, ALCvoid *buffer, ALC
}
self->mLastAvail -= samples;
- while(ATOMIC_LOAD(&device->Connected, almemory_order_acquire) && samples > 0)
+ while(device->Connected.load(std::memory_order_acquire) && samples > 0)
{
snd_pcm_sframes_t amt{0};
@@ -1208,7 +1208,7 @@ ALCuint ALCcaptureAlsa_availableSamples(ALCcaptureAlsa *self)
ALCdevice *device = STATIC_CAST(ALCbackend, self)->mDevice;
snd_pcm_sframes_t avail{0};
- if(ATOMIC_LOAD(&device->Connected, almemory_order_acquire) && self->DoCapture)
+ if(device->Connected.load(std::memory_order_acquire) && self->DoCapture)
avail = snd_pcm_avail_update(self->PcmHandle);
if(avail < 0)
{