diff options
author | Chris Robinson <[email protected]> | 2019-12-21 03:21:13 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2019-12-21 03:21:13 -0800 |
commit | c2ca617ed60e26878a6ac10aaf0dc644b6a24d29 (patch) | |
tree | b59222edcc829b59beaf64ea1912cd97aff2b7d1 /alc/alc.cpp | |
parent | 54e7f48df9366db30e4e7f5f3cca1d7a3ca9a1b4 (diff) |
Use size_t for the compressor channel count
And general cleanup of the compressor
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r-- | alc/alc.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp index 641554e3..9287302e 100644 --- a/alc/alc.cpp +++ b/alc/alc.cpp @@ -1633,11 +1633,11 @@ static void alcSetError(ALCdevice *device, ALCenum errorCode) } -static std::unique_ptr<Compressor> CreateDeviceLimiter(const ALCdevice *device, const ALfloat threshold) +static std::unique_ptr<Compressor> CreateDeviceLimiter(const ALCdevice *device, const float threshold) { - return CompressorInit(static_cast<ALuint>(device->RealOut.Buffer.size()), - static_cast<float>(device->Frequency), AL_TRUE, AL_TRUE, AL_TRUE, AL_TRUE, AL_TRUE, 0.001f, - 0.002f, 0.0f, 0.0f, threshold, INFINITY, 0.0f, 0.020f, 0.200f); + return Compressor::Create(device->RealOut.Buffer.size(), static_cast<float>(device->Frequency), + AL_TRUE, AL_TRUE, AL_TRUE, AL_TRUE, AL_TRUE, 0.001f, 0.002f, 0.0f, 0.0f, threshold, + std::numeric_limits<float>::infinity(), 0.0f, 0.020f, 0.200f); } /* UpdateClockBase |