diff options
author | Chris Robinson <[email protected]> | 2018-12-22 16:01:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-12-22 16:01:14 -0800 |
commit | 334b3a905a1a387d5fb5f74483a7520bb5d5449a (patch) | |
tree | 8f6aa333bb1b4eecbf9bcfe3f3f972c895345480 /Alc/mastering.cpp | |
parent | d4d98e2fe9820f390515baf581dea7dc9bec1431 (diff) |
Clean up some math stuff
Diffstat (limited to 'Alc/mastering.cpp')
-rw-r--r-- | Alc/mastering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/mastering.cpp b/Alc/mastering.cpp index 91ea207b..bdd67aa4 100644 --- a/Alc/mastering.cpp +++ b/Alc/mastering.cpp @@ -1,6 +1,7 @@ #include "config.h" #include <cmath> +#include <limits> #include <algorithm> #include <functional> @@ -395,7 +396,7 @@ Compressor* CompressorInit(const ALsizei NumChans, const ALuint SampleRate, if(hold > 1) { Comp->Hold = new ((void*)(Comp + 1)) SlidingHold{}; - Comp->Hold->Values[0] = -HUGE_VALF; + Comp->Hold->Values[0] = -std::numeric_limits<float>::infinity(); Comp->Hold->Expiries[0] = hold; Comp->Hold->Length = hold; Comp->Delay = (ALfloat(*)[BUFFERSIZE])(Comp->Hold + 1); |