From 6fcbb7c73838ffd910df7dcdc85096937ee9e327 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 21 Jun 2017 11:34:26 -0700 Subject: Remove an unnecessary variable --- Alc/ALu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Alc/ALu.c b/Alc/ALu.c index f6e5cb12..fb10d7f2 100644 --- a/Alc/ALu.c +++ b/Alc/ALu.c @@ -1777,14 +1777,13 @@ void aluMixData(ALCdevice *device, ALvoid *buffer, ALsizei size) { ALfloat (*OutBuffer)[BUFFERSIZE] = device->RealOut.Buffer; ALsizei OutChannels = device->RealOut.NumChannels; - struct Compressor *Limiter = device->Limiter; /* Use NFCtrlData for temp value storage. */ ApplyDistanceComp(OutBuffer, device->ChannelDelay, device->NFCtrlData, SamplesToDo, OutChannels); - if(Limiter) - ApplyCompression(Limiter, OutChannels, SamplesToDo, OutBuffer); + if(device->Limiter) + ApplyCompression(device->Limiter, OutChannels, SamplesToDo, OutBuffer); if(device->DitherDepth > 0.0f) ApplyDither(OutBuffer, &device->DitherSeed, device->DitherDepth, SamplesToDo, -- cgit v1.2.3