diff options
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 1 | ||||
-rw-r--r-- | OpenAL32/alFilter.c | 2 |
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) |