aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-20 12:04:34 -0800
committerChris Robinson <[email protected]>2018-12-20 12:04:34 -0800
commit768ed3cfbb9b07b6f3a008e7e5e7d67559806abc (patch)
treeca0f7e0a0cd71f9f11de97c4f2ed397693725858
parent837881eb7986a56f1e83c1cb23faef0b020bfbd1 (diff)
Silence some MSVC warnings
-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);