aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mastering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/mastering.cpp')
-rw-r--r--Alc/mastering.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/mastering.cpp b/Alc/mastering.cpp
index 37752f4f..fa2c9dac 100644
--- a/Alc/mastering.cpp
+++ b/Alc/mastering.cpp
@@ -369,10 +369,10 @@ Compressor* CompressorInit(const ALsizei NumChans, const ALuint SampleRate,
Comp = new (al_calloc(16, size)) Compressor{};
Comp->NumChans = NumChans;
Comp->SampleRate = SampleRate;
- Comp->Auto.Knee = AutoKnee;
- Comp->Auto.Attack = AutoAttack;
- Comp->Auto.Release = AutoRelease;
- Comp->Auto.PostGain = AutoPostGain;
+ Comp->Auto.Knee = AutoKnee != AL_FALSE;
+ Comp->Auto.Attack = AutoAttack != AL_FALSE;
+ Comp->Auto.Release = AutoRelease != AL_FALSE;
+ Comp->Auto.PostGain = AutoPostGain != AL_FALSE;
Comp->Auto.Declip = AutoPostGain && AutoDeclip;
Comp->LookAhead = lookAhead;
Comp->PreGain = std::pow(10.0f, PreGainDb / 20.0f);