diff options
author | Chris Robinson <[email protected]> | 2014-08-20 21:35:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-08-21 00:29:42 -0700 |
commit | b92e643e9742765acd364bcbe30ebaedbe50400f (patch) | |
tree | e65318fdffb9105d9b247f425e09b283c855552d /Alc/mixer.c | |
parent | 3a6baab495d92afd17fccd61b87ae526235fce88 (diff) |
Use a NULL source for inactive activesources
Also only access the activesource's source field once per update.
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r-- | Alc/mixer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c index 1ca4d664..e4c7a39e 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -178,12 +178,11 @@ static const ALfloat *DoFilters(ALfilterState *lpfilter, ALfilterState *hpfilter } -ALvoid MixSource(ALactivesource *src, ALCdevice *Device, ALuint SamplesToDo) +ALvoid MixSource(ALactivesource *src, ALsource *Source, ALCdevice *Device, ALuint SamplesToDo) { MixerFunc Mix; HrtfMixerFunc HrtfMix; ResamplerFunc Resample; - ALsource *Source = src->Source; ALbufferlistitem *BufferListItem; ALuint DataPosInt, DataPosFrac; ALboolean Looping; |