Skip to content

Commit

Permalink
TimeStretch: use system version of SoundTouch
Browse files Browse the repository at this point in the history
  • Loading branch information
qyot27 committed Dec 24, 2024
1 parent 4a93821 commit 2874985
Show file tree
Hide file tree
Showing 34 changed files with 13 additions and 7,914 deletions.
11 changes: 10 additions & 1 deletion plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,17 @@ else()
set(DEVIL_PLUGIN_STATE OFF)
endif()

find_package(PkgConfig)
pkg_check_modules(SOUNDTOUCH soundtouch)
if(SOUNDTOUCH_FOUND)
set(SOUNDTOUCH_PLUGIN_STATE ON)
else()
MESSAGE(WARNING "SoundTouch library not found. TimeStretch plugin will not be built.")
set(SOUNDTOUCH_PLUGIN_STATE OFF)
endif()

option(BUILD_IMAGESEQ "Build ImageSeq plugin" ${DEVIL_PLUGIN_STATE})
option(BUILD_TIMESTRETCH "Build TimeStretch plugin" ON)
option(BUILD_TIMESTRETCH "Build TimeStretch plugin" ${SOUNDTOUCH_PLUGIN_STATE})
option(BUILD_SHIBATCH "Build Shibatch plugin" ON)
option(BUILD_CONVERTSTACKED "Build ConvertStacked plugin" ON)

Expand Down
5 changes: 2 additions & 3 deletions plugins/TimeStretch/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ if (MINGW)
endif()

# Library dependencies
add_subdirectory("SoundTouch")
target_link_libraries(${ProjectName} "SoundTouch")
target_link_libraries(${ProjectName} ${SOUNDTOUCH_LINK_LIBRARIES})

# Include directories
target_include_directories(${ProjectName} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${AvsCore_SOURCE_DIR})
target_include_directories(${ProjectName} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${AvsCore_SOURCE_DIR} ${SOUNDTOUCH_INCLUDE_DIRS})

if (MSVC_IDE)
# Copy output to a common folder for easy deployment
Expand Down
222 changes: 0 additions & 222 deletions plugins/TimeStretch/SoundTouch/AAFilter.cpp

This file was deleted.

93 changes: 0 additions & 93 deletions plugins/TimeStretch/SoundTouch/AAFilter.h

This file was deleted.

Loading

0 comments on commit 2874985

Please sign in to comment.