aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-10-08 16:31:23 -0700
committerChris Robinson <[email protected]>2013-10-08 16:31:23 -0700
commita421e515befd1916d57e7668ee98c1a5dfe63dab (patch)
tree68d69e41030ccfec34ac89175edec66e99b7660b /OpenAL32
parent11365b42c7fedaef61d7123c390c429260eae52f (diff)
Use a helper macro for pi*2
Diffstat (limited to 'OpenAL32')
-rw-r--r--OpenAL32/Include/alu.h1
-rw-r--r--OpenAL32/alFilter.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h
index d27301b3..55b8edd1 100644
--- a/OpenAL32/Include/alu.h
+++ b/OpenAL32/Include/alu.h
@@ -15,6 +15,7 @@
#define F_PI (3.14159265358979323846f)
#define F_PI_2 (1.57079632679489661923f)
+#define F_2PI (6.28318530717958647692f)
#ifndef FLT_EPSILON
#define FLT_EPSILON (1.19209290e-07f)
diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c
index 026a5814..899ff5f0 100644
--- a/OpenAL32/alFilter.c
+++ b/OpenAL32/alFilter.c
@@ -339,7 +339,7 @@ void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat g
// Limit gain to -100dB
gain = maxf(gain, 0.00001f);
- w0 = 2.0f*F_PI * freq_scale;
+ w0 = F_2PI * freq_scale;
/* Calculate filter coefficients depending on filter type */
switch(type)