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

--HG--
extra : commitid : 4VN9ybE7dd3
This commit is contained in:
Tony Mechelynck [:tonymec] 2016-01-12 12:10:17 +01:00
Родитель 0f1d4e6541
Коммит 8849dc24b6
2 изменённых файлов: 23 добавлений и 2 удалений

Просмотреть файл

@ -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>

Просмотреть файл

@ -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