mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-05-13 01:44:10 -04:00
obs-filters: Fix building of noise reduction
If speex and rnnoise are disabled but nvafx is enabled, the noise reduction filter still needs to be built. This fixes the issue. Co-authored-by: Ryan Foster <ryan@obsproject.com> Signed-off-by: pkv <pkv@obsproject.com>
This commit is contained in:
@@ -5,10 +5,6 @@ legacy_check()
|
||||
add_library(obs-filters MODULE)
|
||||
add_library(OBS::filters ALIAS obs-filters)
|
||||
|
||||
if(OS_WINDOWS)
|
||||
target_enable_feature(obs-filters "NVIDIA Audio FX support" LIBNVAFX_ENABLED HAS_NOISEREDUCTION)
|
||||
endif()
|
||||
|
||||
target_sources(
|
||||
obs-filters
|
||||
PRIVATE
|
||||
@@ -41,6 +37,7 @@ include(cmake/speexdsp.cmake)
|
||||
include(cmake/rnnoise.cmake)
|
||||
|
||||
if(OS_WINDOWS)
|
||||
include(cmake/nvidia.cmake)
|
||||
configure_file(cmake/windows/obs-module.rc.in obs-filters.rc)
|
||||
target_sources(obs-filters PRIVATE obs-filters.rc)
|
||||
endif()
|
||||
|
||||
4
plugins/obs-filters/cmake/nvidia.cmake
Normal file
4
plugins/obs-filters/cmake/nvidia.cmake
Normal file
@@ -0,0 +1,4 @@
|
||||
if(ENABLE_NVAFX)
|
||||
target_sources(obs-filters PRIVATE noise-suppress-filter.c)
|
||||
target_compile_definitions(obs-filters PRIVATE LIBNVAFX_ENABLED HAS_NOISEREDUCTION)
|
||||
endif()
|
||||
Reference in New Issue
Block a user