aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-03-10 04:59:22 -0800
committerChris Robinson <[email protected]>2017-03-10 04:59:22 -0800
commitb878769ee0ea36fc5f0b855edc9017166570186f (patch)
treed1e42c0540c1becfaaed2554da1f29c094550717 /Alc/ALc.c
parent583d431947be540a33843d68feb5f1456671c298 (diff)
Fix building without C11
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index beec0c32..da56fa65 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -2313,7 +2313,8 @@ static ALCenum UpdateDeviceParams(ALCdevice *device, const ALCint *attrList)
for(pos = 0;pos < context->VoiceCount;pos++)
{
ALvoice *voice = context->Voices[pos];
- if(!voice->Source) continue;
+ if(ATOMIC_LOAD(&voice->Source, almemory_order_acquire) == NULL)
+ continue;
if(device->AvgSpeakerDist > 0.0f)
{