From 8a9ad35d58d213c7e093ad85167ee06271184013 Mon Sep 17 00:00:00 2001 From: halx99 Date: Wed, 2 Oct 2024 11:10:49 +0800 Subject: [PATCH] Fix #2199 (#2200) --- 3rdparty/CMakeLists.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt index 92678919074..dda1029e22a 100644 --- a/3rdparty/CMakeLists.txt +++ b/3rdparty/CMakeLists.txt @@ -376,11 +376,18 @@ if (AX_ENABLE_AUDIO) set(ALSOFT_BACKEND_OPENSL OFF CACHE BOOL "Enable OpenSL backend" FORCE) set(OBOE_SOURCE "${oboe_SOURCE_DIR}" CACHE STRING "Source directory for Oboe." FORCE) endif() - list(APPEND alsoft_opts "ALSOFT_RTKIT OFF") + list(APPEND alsoft_opts "ALSOFT_RTKIT OFF" + "ALSOFT_BACKEND_PIPEWIRE OFF" + "ALSOFT_BACKEND_PULSEAUDIO OFF" + "ALSOFT_BACKEND_ALSA OFF" + "ALSOFT_BACKEND_OSS OFF" + "ALSOFT_BACKEND_SOLARIS OFF" + "ALSOFT_BACKEND_SNDIO OFF" + "ALSOFT_BACKEND_JACK OFF" + "ALSOFT_BACKEND_PORTAUDIO OFF" + "ALSOFT_BACKEND_SDL2 OFF") set(ALSOFT_RTKIT OFF CACHE BOOL "Enable RTKit support" FORCE) - endif() - - if(WINDOWS) + elseif(WINDOWS) list(APPEND alsoft_opts "ALSOFT_BACKEND_WASAPI ON" "ALSOFT_BACKEND_WAVE OFF" "ALSOFT_BACKEND_DSOUND OFF" "ALSOFT_BACKEND_WINMM OFF") endif()