diff options
author | Chris Robinson <[email protected]> | 2014-08-21 02:27:56 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-08-21 02:27:56 -0700 |
commit | 65d2e0eb8d8c2af6e36586299bca23c014167b24 (patch) | |
tree | 9ee207678d64d90cb2140a0ac39f40028600bcef /Alc/ALu.c | |
parent | b92e643e9742765acd364bcbe30ebaedbe50400f (diff) |
Use an array of objects for active sources instead of pointers
Diffstat (limited to 'Alc/ALu.c')
-rw-r--r-- | Alc/ALu.c | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1140,7 +1140,7 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) { ALuint SamplesToDo; ALeffectslot **slot, **slot_end; - ALactivesource **src, **src_end; + ALactivesource *src, *src_end; ALCcontext *ctx; FPUCtl oldMode; ALuint i, c; @@ -1175,21 +1175,21 @@ ALvoid aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) src_end = src + ctx->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; goto next; } if(!DeferUpdates && (ATOMIC_EXCHANGE(ALenum, &source->NeedsUpdate, AL_FALSE) || UpdateSources)) - (*src)->Update(*src, source, ctx); + src->Update(src, source, ctx); if(source->state != AL_PAUSED) - MixSource(*src, source, device, SamplesToDo); + MixSource(src, source, device, SamplesToDo); next: src++; } @@ -1295,14 +1295,14 @@ ALvoid aluHandleDisconnect(ALCdevice *device) Context = ATOMIC_LOAD(&device->ContextList); while(Context) { - ALactivesource **src, **src_end; + ALactivesource *src, *src_end; src = Context->ActiveSources; src_end = src + Context->ActiveSourceCount; while(src != src_end) { - ALsource *source = (*src)->Source; - (*src)->Source = NULL; + ALsource *source = src->Source; + src->Source = NULL; if(source && source->state == AL_PLAYING) { |