diff options
author | Chris Robinson <[email protected]> | 2018-11-19 09:51:29 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-19 09:51:29 -0800 |
commit | 3ae1c78d1ac07cd22727296488a399c48597fd15 (patch) | |
tree | 972c43d160cc7992c0d18fdc930512571853dd6d /Alc/effects | |
parent | ddfed7187fad7c55ebb5eadb67108914ce22a57f (diff) |
Use std::isfinite instead of isfinite
Diffstat (limited to 'Alc/effects')
-rw-r--r-- | Alc/effects/dedicated.cpp | 3 | ||||
-rw-r--r-- | Alc/effects/reverb.cpp | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Alc/effects/dedicated.cpp b/Alc/effects/dedicated.cpp index 59f31b52..f91458b3 100644 --- a/Alc/effects/dedicated.cpp +++ b/Alc/effects/dedicated.cpp @@ -21,6 +21,7 @@ #include "config.h" #include <stdlib.h> +#include <cmath> #include "alMain.h" #include "alcontext.h" @@ -142,7 +143,7 @@ void ALdedicated_setParamf(ALeffect *effect, ALCcontext *context, ALenum param, switch(param) { case AL_DEDICATED_GAIN: - if(!(val >= 0.0f && isfinite(val))) + if(!(val >= 0.0f && std::isfinite(val))) SETERR_RETURN(context, AL_INVALID_VALUE,, "Dedicated gain out of range"); props->Dedicated.Gain = val; break; diff --git a/Alc/effects/reverb.cpp b/Alc/effects/reverb.cpp index 64676ed2..8b63e473 100644 --- a/Alc/effects/reverb.cpp +++ b/Alc/effects/reverb.cpp @@ -24,6 +24,7 @@ #include <stdlib.h> #include <math.h> +#include <cmath> #include <algorithm> #include "alMain.h" @@ -1741,14 +1742,14 @@ void ALeaxreverb_setParamfv(ALeffect *effect, ALCcontext *context, ALenum param, switch(param) { case AL_EAXREVERB_REFLECTIONS_PAN: - if(!(isfinite(vals[0]) && isfinite(vals[1]) && isfinite(vals[2]))) + if(!(std::isfinite(vals[0]) && std::isfinite(vals[1]) && std::isfinite(vals[2]))) SETERR_RETURN(context, AL_INVALID_VALUE,, "EAX Reverb reflections pan out of range"); props->Reverb.ReflectionsPan[0] = vals[0]; props->Reverb.ReflectionsPan[1] = vals[1]; props->Reverb.ReflectionsPan[2] = vals[2]; break; case AL_EAXREVERB_LATE_REVERB_PAN: - if(!(isfinite(vals[0]) && isfinite(vals[1]) && isfinite(vals[2]))) + if(!(std::isfinite(vals[0]) && std::isfinite(vals[1]) && std::isfinite(vals[2]))) SETERR_RETURN(context, AL_INVALID_VALUE,, "EAX Reverb late reverb pan out of range"); props->Reverb.LateReverbPan[0] = vals[0]; props->Reverb.LateReverbPan[1] = vals[1]; |