diff options
author | Chris Robinson <[email protected]> | 2015-09-13 08:46:48 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-09-13 08:46:48 -0700 |
commit | b348abf5c31f58e8de62f0b33b7b110f6448d035 (patch) | |
tree | cf3f04b47f39dddf805f22bf24d9e26e17a7931f /OpenAL32 | |
parent | 2763f4096cf0250931fd75e251fe7d7f2b38763a (diff) |
Rename F_2PI to F_TAU
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alu.h | 2 | ||||
-rw-r--r-- | OpenAL32/alFilter.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/Include/alu.h b/OpenAL32/Include/alu.h index 50cde1bf..e167979b 100644 --- a/OpenAL32/Include/alu.h +++ b/OpenAL32/Include/alu.h @@ -20,7 +20,7 @@ #define F_PI (3.14159265358979323846f) #define F_PI_2 (1.57079632679489661923f) -#define F_2PI (6.28318530717958647692f) +#define F_TAU (6.28318530717958647692f) #ifndef FLT_EPSILON #define FLT_EPSILON (1.19209290e-07f) diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index 72eff9bb..ccf256e1 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -344,7 +344,7 @@ void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat g // Limit gain to -100dB gain = maxf(gain, 0.00001f); - w0 = F_2PI * freq_mult; + w0 = F_TAU * freq_mult; /* Calculate filter coefficients depending on filter type */ switch(type) |