mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1236937 - Use correct value for Pi in AAFilter.cpp. r=padenot
This commit is contained in:
parent
b0e2b7fa3c
commit
ac3798b6b2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user