diff options
author | Chris Robinson <[email protected]> | 2012-01-01 15:00:03 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-01-01 15:00:03 -0800 |
commit | 886f874ff3025fac7bd07b9439f8ecc3b78fcc36 (patch) | |
tree | 709787f55a871e0c13dd668ae7c93451dbbba8c3 /OpenAL32/alSource.c | |
parent | 466cac328f15f3538c895208bfe7ea14f3923ffc (diff) |
Use a proper typedef for handling atomic pointer swaps
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r-- | OpenAL32/alSource.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 7d0aa978..982da4c4 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -583,7 +583,7 @@ AL_API ALvoid AL_APIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue) // Increment reference counter for buffer IncrementRef(&buffer->ref); - oldlist = ExchangePtr((void**)&Source->queue, BufferListItem); + oldlist = ExchangePtr((XchgPtr*)&Source->queue, BufferListItem); Source->BuffersInQueue = 1; ReadLock(&buffer->lock); @@ -600,7 +600,7 @@ AL_API ALvoid AL_APIENTRY alSourcei(ALuint source,ALenum eParam,ALint lValue) { // Source is now in UNDETERMINED mode Source->lSourceType = AL_UNDETERMINED; - oldlist = ExchangePtr((void**)&Source->queue, NULL); + oldlist = ExchangePtr((XchgPtr*)&Source->queue, NULL); } // Delete all previous elements in the queue @@ -780,7 +780,7 @@ AL_API void AL_APIENTRY alSource3i(ALuint source, ALenum eParam, ALint lValue1, /* Release refcount on the previous slot, and add one for * the new slot */ if(ALEffectSlot) IncrementRef(&ALEffectSlot->ref); - ALEffectSlot = ExchangePtr((void**)&Source->Send[lValue2].Slot, ALEffectSlot); + ALEffectSlot = ExchangePtr((XchgPtr*)&Source->Send[lValue2].Slot, ALEffectSlot); if(ALEffectSlot) DecrementRef(&ALEffectSlot->ref); if(!ALFilter) |