mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
Issue #1949 - Part 1: Update soundtouch library to 2.3.1.
This commit is contained in:
parent
b7a771fce6
commit
e98c7b8f67
32 changed files with 800 additions and 590 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue