aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-10-11 22:30:58 -0700
committerChris Robinson <[email protected]>2011-10-11 22:30:58 -0700
commit0fba3b0e1e0c71dce3b34295f1b7f805236641b8 (patch)
tree817bd589fb9976aadf58550a5555b37159004b4e /Alc
parent92a650c827c1bcecf400717c06dc3a4370eecbd3 (diff)
Use the local Device variable
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c10
1 files 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],