diff options
author | Chris Robinson <[email protected]> | 2014-08-21 03:24:48 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-08-21 03:41:13 -0700 |
commit | 259e265920f6505554e0625338fbc6e56d0858f2 (patch) | |
tree | 58ba68d535c5f001df101740fd93e66fc905a6c6 /OpenAL32/alState.c | |
parent | 65d2e0eb8d8c2af6e36586299bca23c014167b24 (diff) |
Rename activesource to voice
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r-- | OpenAL32/alState.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c index 77eefc8b..b001d3f4 100644 --- a/OpenAL32/alState.c +++ b/OpenAL32/alState.c @@ -715,7 +715,7 @@ AL_API ALvoid AL_APIENTRY alDeferUpdatesSOFT(void) if(!context->DeferUpdates) { ALboolean UpdateSources; - ALactivesource *src, *src_end; + ALvoice *voice, *voice_end; ALeffectslot **slot, **slot_end; FPUCtl oldMode; @@ -727,23 +727,23 @@ AL_API ALvoid AL_APIENTRY alDeferUpdatesSOFT(void) /* Make sure all pending updates are performed */ UpdateSources = ATOMIC_EXCHANGE(ALenum, &context->UpdateSources, AL_FALSE); - src = context->ActiveSources; - src_end = src + context->ActiveSourceCount; - while(src != src_end) + voice = context->Voices; + voice_end = voice + context->VoiceCount; + while(voice != voice_end) { - ALsource *source = src->Source; + ALsource *source = voice->Source; if(!source) goto next; if(source->state != AL_PLAYING && source->state != AL_PAUSED) { - src->Source = NULL; + voice->Source = NULL; continue; } if(ATOMIC_EXCHANGE(ALenum, &source->NeedsUpdate, AL_FALSE) || UpdateSources) - src->Update(src, source, context); + voice->Update(voice, source, context); next: - src++; + voice++; } slot = VECTOR_ITER_BEGIN(context->ActiveAuxSlots); |