aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-03-22 09:55:15 -0700
committerChris Robinson <[email protected]>2018-03-22 09:55:15 -0700
commit7789cc8e32f71201a603809484031fe9988258c1 (patch)
tree1c8d5d8f5092a5733d6568c3822ab3407a7ab8ab /common
parent1d6622aa2b2408a18c010d40974a3f3f83ced962 (diff)
Define the Hanning window globally once for the pitch shifter
Diffstat (limited to 'common')
-rw-r--r--common/math_defs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/math_defs.h b/common/math_defs.h
index 428f5181..8ce93d0a 100644
--- a/common/math_defs.h
+++ b/common/math_defs.h
@@ -6,6 +6,10 @@
#include <float.h>
#endif
+#ifndef M_PI
+#define M_PI (3.14159265358979323846)
+#endif
+
#define F_PI (3.14159265358979323846f)
#define F_PI_2 (1.57079632679489661923f)
#define F_TAU (6.28318530717958647692f)