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:
pkv
2024-09-10 14:50:46 -04:00
committed by Ryan Foster
co-authored by Ryan Foster
parent e3265fd3e6
commit 7fdcb166b4
2 changed files with 5 additions and 4 deletions
+1 -4
View File
@@ -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
View 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()