aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-10-11 22:29:06 -0700
committerChris Robinson <[email protected]>2011-10-11 22:29:06 -0700
commit92a650c827c1bcecf400717c06dc3a4370eecbd3 (patch)
tree3634f9c81a4ba49442c6a8805a443e87a25b9fb5 /Alc
parent3bbde05e0e220427b0eae5d6b13a994995ae4646 (diff)
Use the local variable instead of re-reading the source property
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 5dc2bc26..d5e5aae2 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -178,7 +178,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext)
}
BufferListItem = BufferListItem->next;
}
- if(ALSource->VirtualChannels && Device->Hrtf)
+ if(VirtualChannels && Device->Hrtf)
ALSource->Params.DoMix = SelectHrtfMixer((ALSource->Params.Step==FRACTIONONE) ?
POINT_RESAMPLER : Resampler);
else