Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

Externals: Add soundtouch

MerryMage2d50954f85b5
diff --git a/.gitmodules b/.gitmodules
index 598e4c64d1..0595129021 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -7,3 +7,6 @@
[submodule "nihstro"]
path = externals/nihstro
url = https://github.com/neobrain/nihstro.git
+[submodule "soundtouch"]
+ path = externals/soundtouch
+ url = https://github.com/citra-emu/soundtouch.git
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 019321ad89..d628ecc50a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -249,6 +249,9 @@ if(ENABLE_QT)
include_directories(externals/qhexedit)
add_subdirectory(externals/qhexedit)
endif()
+
+add_subdirectory(externals/soundtouch)
+
add_subdirectory(src)
# Install freedesktop.org metadata files, following those specifications:
diff --git a/externals/soundtouch b/externals/soundtouch
new file mode 160000
index 0000000000..5274ec4dec
--- /dev/null
+++ b/externals/soundtouch
@@ -0,0 +1 @@
+Subproject commit 5274ec4dec498bd88ccbcd28862a0f78a3b95eff
diff --git a/src/audio_core/CMakeLists.txt b/src/audio_core/CMakeLists.txt
index 869da5e83f..c08ce69e04 100644
--- a/src/audio_core/CMakeLists.txt
+++ b/src/audio_core/CMakeLists.txt
@@ -16,6 +16,9 @@ set(HEADERS
sink.h
)
+include_directories(../../externals/soundtouch/include)
+
create_directory_groups(${SRCS} ${HEADERS})
-add_library(audio_core STATIC ${SRCS} ${HEADERS})
\ No newline at end of file
+add_library(audio_core STATIC ${SRCS} ${HEADERS})
+target_link_libraries(audio_core SoundTouch)