Skip to content

Commit

Permalink
Bug 1588233 - P1: Correct the moz-patch for soundtouch. r=padenot
Browse files Browse the repository at this point in the history
Correct the format of the diff for AAFilter.cpp so the update-script can
work.

Differential Revision: https://phabricator.services.mozilla.com/D49028

--HG--
extra : moz-landing-system : lando
  • Loading branch information
ChunMinChang committed Nov 26, 2019
1 parent fae60e4 commit c2fb3ad
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions media/libsoundtouch/moz-libsoundtouch.patch
Original file line number Diff line number Diff line change
Expand Up @@ -120,26 +120,17 @@ diff -u /src/TDStretch.cpp /src/TDStretch.cpp
+#endif

// Check if MMX/SSE instruction set extensions supported by CPU

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"

diff -u /src/AAFilter.cpp /src/AAFilter.cpp
--- /src/AAFilter.cpp
+++ /src/AAFilter.cpp
@@ -42,7 +42,7 @@

using namespace soundtouch;

-#define PI 3.141592655357989
-#define PI 3.14159265358979323846
+#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>

0 comments on commit c2fb3ad

Please sign in to comment.