aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/alState.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-08-21 02:27:56 -0700
committerChris Robinson <[email protected]>2014-08-21 02:27:56 -0700
commit65d2e0eb8d8c2af6e36586299bca23c014167b24 (patch)
tree9ee207678d64d90cb2140a0ac39f40028600bcef /OpenAL32/alState.c
parentb92e643e9742765acd364bcbe30ebaedbe50400f (diff)
Use an array of objects for active sources instead of pointers
Diffstat (limited to 'OpenAL32/alState.c')
-rw-r--r--OpenAL32/alState.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/alState.c b/OpenAL32/alState.c
index 699bea20..77eefc8b 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;
+ ALactivesource *src, *src_end;
ALeffectslot **slot, **slot_end;
FPUCtl oldMode;
@@ -731,17 +731,17 @@ AL_API ALvoid AL_APIENTRY alDeferUpdatesSOFT(void)
src_end = src + context->ActiveSourceCount;
while(src != src_end)
{
- ALsource *source = (*src)->Source;
+ ALsource *source = src->Source;
if(!source) goto next;
if(source->state != AL_PLAYING && source->state != AL_PAUSED)
{
- (*src)->Source = NULL;
+ src->Source = NULL;
continue;
}
if(ATOMIC_EXCHANGE(ALenum, &source->NeedsUpdate, AL_FALSE) || UpdateSources)
- (*src)->Update(*src, source, context);
+ src->Update(src, source, context);
next:
src++;
}