diff options
author | Moonchild <moonchild@palemoon.org> | 2022-07-01 12:20:55 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-07-01 12:20:55 +0000 |
commit | 07689ab83f78ea379e744fdb473b22ed0f9ebf95 (patch) | |
tree | 306988fc3300411d807faa3aa6f4736a623afb99 /media/libsoundtouch/moz-libsoundtouch.patch | |
parent | 77e923c1460b346a85526d6480bf0cc651ab6b41 (diff) | |
parent | 2d4950d2ae8cbb8219d97e2e48d02e07bbe1df9e (diff) | |
download | uxp-07689ab83f78ea379e744fdb473b22ed0f9ebf95.tar.gz |
Merge pull request 'Update soundtouch library to 2.3.1' (#1951) from jobbautista9/UXP:soundtouch-take2 into master
Reviewed-on: https://repo.palemoon.org/MoonchildProductions/UXP/pulls/1951
Reviewed-by: Moonchild <moonchild@palemoon.org>
Diffstat (limited to 'media/libsoundtouch/moz-libsoundtouch.patch')
-rw-r--r-- | media/libsoundtouch/moz-libsoundtouch.patch | 33 |
1 files changed, 14 insertions, 19 deletions
diff --git a/media/libsoundtouch/moz-libsoundtouch.patch b/media/libsoundtouch/moz-libsoundtouch.patch index 87629373e8..dc2ea63804 100644 --- a/media/libsoundtouch/moz-libsoundtouch.patch +++ b/media/libsoundtouch/moz-libsoundtouch.patch @@ -56,7 +56,7 @@ diff -u /src/cpu_detect_x86.cpp /src/cpu_detect_x86.cpp diff -u /src/STTypes.h /src/STTypes.h --- /src/STTypes.h +++ /src/STTypes.h -@@ -54,12 +54,13 @@ +@@ -54,12 +54,17 @@ #define SOUNDTOUCH_ALIGN_POINTER_16(x) ( ( (ulongptr)(x) + 15 ) & ~(ulongptr)15 ) @@ -68,9 +68,13 @@ diff -u /src/STTypes.h /src/STTypes.h +#include "soundtouch_config.h" +#if defined(WIN32) -+#define EXPORT __declspec(dllexport) ++#if defined(BUILDING_SOUNDTOUCH) ++#define SOUNDTOUCH_API __declspec(dllexport) +#else -+#define EXPORT ++#define SOUNDTOUCH_API __declspec(dllimport) ++#endif ++#else ++#define SOUNDTOUCH_API +#endif namespace soundtouch @@ -83,7 +87,7 @@ diff -u /src/SoundTouch.h /src/SoundTouch.h #define SETTING_NOMINAL_OUTPUT_SEQUENCE 7 -class SoundTouch : public FIFOProcessor -+class EXPORT SoundTouch : public FIFOProcessor ++class SOUNDTOUCH_API SoundTouch : public FIFOProcessor { private: /// Rate transposer class instance @@ -116,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> |