From b1b3a369ef4ffdfa78abbb14e7e3b6d842cd4104 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 7 Mar 2017 09:38:33 -0800 Subject: Remove an unnecessary variable --- OpenAL32/alSource.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'OpenAL32') diff --git a/OpenAL32/alSource.c b/OpenAL32/alSource.c index 57053083..e81fd853 100644 --- a/OpenAL32/alSource.c +++ b/OpenAL32/alSource.c @@ -2987,7 +2987,6 @@ void UpdateAllSourceProps(ALCcontext *context) ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state) { ALCdevice *device = Context->Device; - ALuint refcount; ALvoice *voice; WriteLock(&Source->queue_lock); @@ -3109,7 +3108,7 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state) if((voice=GetSourceVoice(Source, Context)) != NULL) { ATOMIC_STORE(&voice->Playing, false, almemory_order_release); - while(((refcount=ATOMIC_LOAD(&device->MixCount, almemory_order_acquire))&1)) + while((ATOMIC_LOAD(&device->MixCount, almemory_order_acquire)&1)) althrd_yield(); } if(GetSourceState(Source, voice) == AL_PLAYING) @@ -3121,7 +3120,7 @@ ALvoid SetSourceState(ALsource *Source, ALCcontext *Context, ALenum state) { ATOMIC_STORE(&voice->Source, NULL, almemory_order_relaxed); ATOMIC_STORE(&voice->Playing, false, almemory_order_release); - while(((refcount=ATOMIC_LOAD(&device->MixCount, almemory_order_acquire))&1)) + while((ATOMIC_LOAD(&device->MixCount, almemory_order_acquire)&1)) althrd_yield(); } if(ATOMIC_LOAD(&Source->state, almemory_order_acquire) != AL_INITIAL) -- cgit v1.2.3