aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/lpfilter.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Alc/lpfilter.c b/Alc/lpfilter.c
index 2496f007..9f65cf3b 100644
--- a/Alc/lpfilter.c
+++ b/Alc/lpfilter.c
@@ -212,10 +212,9 @@ static void prewarp(
double *a0, double *a1, double *a2,
double fc, double fs)
{
- double wp, pi;
+ static const double pi = 3.141592653589793238;
- pi = 4.0 * atan(1.0);
- wp = 2.0 * fs * tan(pi * fc / fs);
+ double wp = 2.0 * fs * tan(pi * fc / fs);
*a2 = (*a2) / (wp * wp);
*a1 = (*a1) / wp;