From eea86ab8916c5e0213dabc404a191bbf0e0affbe Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 1 May 2011 18:18:37 -0700 Subject: Use flags instead of separate bools --- Alc/ALu.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Alc/ALu.c') diff --git a/Alc/ALu.c b/Alc/ALu.c index dda384ec..076937c3 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -87,14 +87,12 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALfloat WetGain[MAX_SENDS]; ALfloat WetGainHF[MAX_SENDS]; ALint NumSends, Frequency; - ALboolean DupStereo; ALfloat Pitch; ALfloat cw; ALint i; /* Get device properties */ DevChans = ALContext->Device->FmtChans; - DupStereo = ALContext->Device->DuplicateStereo; NumSends = ALContext->Device->NumAuxSends; Frequency = ALContext->Device->Frequency; @@ -163,7 +161,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) SrcMatrix[0][FRONT_CENTER] = DryGain * ListenerGain; break; case FmtStereo: - if(DupStereo == AL_FALSE) + if(!(ALContext->Device->Flags&DEVICE_DUPLICATE_STEREO)) { SrcMatrix[0][FRONT_LEFT] = DryGain * ListenerGain; SrcMatrix[1][FRONT_RIGHT] = DryGain * ListenerGain; @@ -670,7 +668,7 @@ ALvoid CalcSourceParams(ALsource *ALSource, const ALCcontext *ALContext) Position[2] *= invlen; } - if(Device->UseHRTF) + if((Device->Flags&DEVICE_USE_HRTF)) { const ALshort *hrtf_left, *hrtf_right; -- cgit v1.2.3