aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-08-03 00:26:21 -0700
committerChris Robinson <[email protected]>2014-08-03 00:26:21 -0700
commitf5194a9d8e9ce58b0c1a082686ccf180ea66f8ad (patch)
tree4af7b454465d607a9465e849b6b75e02e84aef0e /OpenAL32
parent659b3407162e2354c89ebdc9858c9a9fb39ad3d3 (diff)
Use an ATOMIC_INIT macro instead of ATOMIC_LOAD_UNSAFE
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/alAuxEffectSlot.c2
-rw-r--r--OpenAL32/alSource.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alAuxEffectSlot.c b/OpenAL32/alAuxEffectSlot.c
index 96056651..ec8890b6 100644
--- a/OpenAL32/alAuxEffectSlot.c
+++ b/OpenAL32/alAuxEffectSlot.c
@@ -522,7 +522,7 @@ ALenum InitEffectSlot(ALeffectslot *slot)
slot->Gain = 1.0;
slot->AuxSendAuto = AL_TRUE;
- ATOMIC_STORE_UNSAFE(&slot->NeedsUpdate, AL_FALSE);
+ ATOMIC_INIT(&slot->NeedsUpdate, AL_FALSE);
for(c = 0;c < 1;c++)
{
for(i = 0;i < BUFFERSIZE;i++)
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c
index 2cfec346..155a7f8b 100644
--- a/OpenAL32/alSource.c
+++ b/OpenAL32/alSource.c
@@ -2423,8 +2423,8 @@ static ALvoid InitSourceParams(ALsource *Source)
Source->SourceType = AL_UNDETERMINED;
Source->Offset = -1.0;
- ATOMIC_STORE_UNSAFE(&Source->queue, NULL);
- ATOMIC_STORE_UNSAFE(&Source->current_buffer, NULL);
+ ATOMIC_INIT(&Source->queue, NULL);
+ ATOMIC_INIT(&Source->current_buffer, NULL);
Source->Direct.Gain = 1.0f;
Source->Direct.GainHF = 1.0f;
@@ -2440,7 +2440,7 @@ static ALvoid InitSourceParams(ALsource *Source)
Source->Send[i].LFReference = HIGHPASSFREQREF;
}
- ATOMIC_STORE_UNSAFE(&Source->NeedsUpdate, AL_TRUE);
+ ATOMIC_INIT(&Source->NeedsUpdate, AL_TRUE);
}