diff options
author | Chris Robinson <[email protected]> | 2018-11-19 01:20:03 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-19 01:20:03 -0800 |
commit | 6e114a7a70c90d575e5978c5bcac95307bec0140 (patch) | |
tree | 82126cd9d68bf76de7e049dc5dbfc216a1b1f9b6 /Alc/alu.cpp | |
parent | 190de1452e647aa9d45099d782d20473cba1284c (diff) |
Replace ATOMIC_REPLACE_HEAD with an inline function
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r-- | Alc/alu.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp index 9a02d4b6..e26f5f57 100644 --- a/Alc/alu.cpp +++ b/Alc/alu.cpp @@ -330,7 +330,7 @@ static bool CalcContextParams(ALCcontext *Context) Listener.Params.SourceDistanceModel = props->SourceDistanceModel; Listener.Params.mDistanceModel = props->mDistanceModel; - ATOMIC_REPLACE_HEAD(struct ALcontextProps*, &Context->FreeContextProps, props); + AtomicReplaceHead(Context->FreeContextProps, props); return true; } @@ -376,7 +376,7 @@ static bool CalcListenerParams(ALCcontext *Context) Listener.Params.Gain = props->Gain * Context->GainBoost; - ATOMIC_REPLACE_HEAD(struct ALlistenerProps*, &Context->FreeListenerProps, props); + AtomicReplaceHead(Context->FreeListenerProps, props); return true; } @@ -449,7 +449,7 @@ static bool CalcEffectSlotParams(ALeffectslot *slot, ALCcontext *context, bool f } } - ATOMIC_REPLACE_HEAD(struct ALeffectslotProps*, &context->FreeEffectslotProps, props); + AtomicReplaceHead(context->FreeEffectslotProps, props); } else state = slot->Params.EffectState; @@ -1465,7 +1465,7 @@ static void CalcSourceParams(ALvoice *voice, ALCcontext *context, bool force) FAM_SIZE(struct ALvoiceProps, Send, context->Device->NumAuxSends) ); - ATOMIC_REPLACE_HEAD(struct ALvoiceProps*, &context->FreeVoiceProps, props); + AtomicReplaceHead(context->FreeVoiceProps, props); } props = voice->Props; |