aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/alu.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-24 09:17:00 -0800
committerChris Robinson <[email protected]>2018-12-24 09:17:00 -0800
commit95631aa358a99b5f70a3edcebf2b76d1d4ae5af2 (patch)
tree686753ae4ee6e1643dfa47c82d93f4fabed5877f /Alc/alu.cpp
parentd49eeb576cbcba966f56aed0dccbdd4694ffbaf7 (diff)
Make the Compressor more class-like
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r--Alc/alu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/alu.cpp b/Alc/alu.cpp
index fbdbc4b2..1917dd9d 100644
--- a/Alc/alu.cpp
+++ b/Alc/alu.cpp
@@ -1745,8 +1745,8 @@ void aluMixData(ALCdevice *device, ALvoid *OutBuffer, ALsizei NumSamples)
}
/* Apply compression, limiting sample amplitude if needed or desired. */
- if(device->Limiter)
- ApplyCompression(device->Limiter.get(), SamplesToDo, device->RealOut.Buffer);
+ if(Compressor *comp{device->Limiter.get()})
+ comp->process(SamplesToDo, device->RealOut.Buffer);
/* Apply delays and attenuation for mismatched speaker distances. */
ApplyDistanceComp(device->RealOut.Buffer, device->ChannelDelay, device->TempBuffer[0],