diff options
author | Chris Robinson <[email protected]> | 2017-03-07 09:38:33 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-03-07 09:38:33 -0800 |
commit | b1b3a369ef4ffdfa78abbb14e7e3b6d842cd4104 (patch) | |
tree | 70419560164efbfc8835ffc4c7cfc11295ca2edf /OpenAL32/alSource.c | |
parent | b64da108a9d1885ae70eaf733a388666ddb9ac2d (diff) |
Remove an unnecessary variable
Diffstat (limited to 'OpenAL32/alSource.c')
-rw-r--r-- | OpenAL32/alSource.c | 5 |
1 files changed, 2 insertions, 3 deletions
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) |