From 0fba3b0e1e0c71dce3b34295f1b7f805236641b8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 11 Oct 2011 22:30:58 -0700 Subject: [PATCH] Use the local Device variable --- Alc/ALu.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index d5e5aae2..bc61e579 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -134,9 +134,9 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) ALint i, c; /* Get device properties */ - DevChans = ALContext->Device->FmtChans; - NumSends = ALContext->Device->NumAuxSends; - Frequency = ALContext->Device->Frequency; + DevChans = Device->FmtChans; + NumSends = Device->NumAuxSends; + Frequency = Device->Frequency; /* Get listener properties */ ListenerGain = ALContext->Listener.Gain; @@ -210,7 +210,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) num_channels = 1; break; case FmtStereo: - if(VirtualChannels && (ALContext->Device->Flags&DEVICE_DUPLICATE_STEREO)) + if(VirtualChannels && (Device->Flags&DEVICE_DUPLICATE_STEREO)) { DryGain *= aluSqrt(2.0f/4.0f); for(c = 0;c < 2;c++) @@ -287,7 +287,7 @@ ALvoid CalcNonAttnSourceParams(ALsource *ALSource, const ALCcontext *ALContext) { /* Get the static HRIR coefficients and delays for this * channel. */ - GetLerpedHrtfCoeffs(ALContext->Device->Hrtf, + GetLerpedHrtfCoeffs(Device->Hrtf, 0.0f, F_PI/180.0f * angles[c], DryGain*ListenerGain, ALSource->Params.HrtfCoeffs[c], -- 2.11.4.GIT