diff options
author | Chris Robinson <[email protected]> | 2018-12-24 09:17:00 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-24 09:17:00 -0800 |
commit | 95631aa358a99b5f70a3edcebf2b76d1d4ae5af2 (patch) | |
tree | 686753ae4ee6e1643dfa47c82d93f4fabed5877f /Alc/alu.cpp | |
parent | d49eeb576cbcba966f56aed0dccbdd4694ffbaf7 (diff) |
Make the Compressor more class-like
Diffstat (limited to 'Alc/alu.cpp')
-rw-r--r-- | Alc/alu.cpp | 4 |
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], |