diff options
author | Chris Robinson <[email protected]> | 2017-03-05 04:50:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-03-05 04:50:27 -0800 |
commit | 073829f26a4a509d11de5375d43169a8f6ba9e12 (patch) | |
tree | 28a341bd1a5954ff9e94a3332bc843314c52f2d0 /Alc/ALc.c | |
parent | c0404916150c48769d08ac32921b9a6a66dc0c0a (diff) |
Make the voice's source pointer atomic
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1721,7 +1721,7 @@ void ALCcontext_ProcessUpdates(ALCcontext *context) for(pos = 0;pos < context->VoiceCount;pos++) { ALvoice *voice = context->Voices[pos]; - ALsource *source = voice->Source; + ALsource *source = ATOMIC_LOAD(&voice->Source, almemory_order_acquire); if(source && source->OffsetType != AL_NONE) { WriteLock(&source->queue_lock); |