Bug 1236937 - Use correct value for Pi in AAFilter.cpp. r=padenot

This commit is contained in:
Tony Mechelynck [:tonymec] 2016-01-12 12:10:17 +01:00
parent b0e2b7fa3c
commit ac3798b6b2
2 changed files with 23 additions and 2 deletions

View File

@ -117,4 +117,25 @@ diff -u /src/TDStretch.cpp /src/TDStretch.cpp
// Check if MMX/SSE instruction set extensions supported by CPU
diff -u /src/SoundTouch.cpp /src/SoundTouch.cpp
diff --git a/media/libsoundtouch/src/AAFilter.cpp b/media/libsoundtouch/src/AAFilter.cpp
--- a/media/libsoundtouch/src/AAFilter.cpp
+++ b/media/libsoundtouch/src/AAFilter.cpp
@@ -44,17 +44,17 @@
#include <assert.h>
#include <math.h>
#include <stdlib.h>
#include "AAFilter.h"
#include "FIRFilter.h"
using namespace soundtouch;
-#define PI 3.141592655357989
+#define PI M_PI
#define TWOPI (2 * PI)
// define this to save AA filter coefficients to a file
// #define _DEBUG_SAVE_AAFILTER_COEFFICIENTS 1
#ifdef _DEBUG_SAVE_AAFILTER_COEFFICIENTS
#include <stdio.h>

View File

@ -49,7 +49,7 @@
using namespace soundtouch;
#define PI 3.141592655357989
#define PI M_PI
#define TWOPI (2 * PI)
// define this to save AA filter coefficients to a file