aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-02 09:25:19 -0700
committerChris Robinson <[email protected]>2018-11-02 19:16:26 -0700
commit25dfe4b57a0042008748bb3521a8f5efe297c5db (patch)
treeea3d5410870affa762480ad3ce0339a4bc3c9cc7 /Alc
parent9a4a3d3977d9360a49f87918d5a7c00aa01971bd (diff)
Use HUGE_VALF instead of INFINITY
Older MSVC lacks INFINITY, and we define a HUGE_VALF fallback when needed.
Diffstat (limited to 'Alc')
-rw-r--r--Alc/mastering.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/mastering.c b/Alc/mastering.c
index b0b94eea..f6ed9242 100644
--- a/Alc/mastering.c
+++ b/Alc/mastering.c
@@ -6,6 +6,7 @@
#include "alu.h"
#include "almalloc.h"
#include "static_assert.h"
+#include "math_defs.h"
/* These structures assume BUFFERSIZE is a power of 2. */
@@ -463,7 +464,7 @@ Compressor* CompressorInit(const ALsizei NumChans, const ALuint SampleRate,
if(hold > 0)
{
Comp->Hold = (SlidingHold*)(Comp + 1);
- Comp->Hold->Values[0] = -INFINITY;
+ Comp->Hold->Values[0] = -HUGE_VALF;
Comp->Hold->Expiries[0] = hold;
Comp->Hold->Length = hold;
Comp->Delay = (ALfloat(*)[BUFFERSIZE])(Comp->Hold + 1);