Not forcing any RtAudio backend. This is still te be found out what works properly
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Anne de Jong 2023-05-12 06:41:16 -07:00
parent 3e6c8cf3b2
commit 318a565e17
2 changed files with 6 additions and 8 deletions

View File

@ -1,11 +1,8 @@
if(WIN32) if(WIN32)
set(home $ENV{USERPROFILE}) set(home $ENV{USERPROFILE})
# set(miniconda_dir ${home}\\Miniconda3) # set(miniconda_dir ${home}\\Miniconda3)
message("Building for Windows") message("Building for Windows")
add_definitions(-DHAS_RTAUDIO_WIN_WASAPI_API)
else() # Linux compile else() # Linux compile
message("Building for Linux :)")
endif() endif()

View File

@ -2,11 +2,12 @@
if(LASP_HAS_RTAUDIO) if(LASP_HAS_RTAUDIO)
message("Building RtAudio backend") message("Building RtAudio backend")
if(WIN32) if(WIN32)
set(RTAUDIO_API_WASAPI TRUE CACHE BOOL "Build for WASAPI" FORCE) set(RTAUDIO_API_WASAPI FALSE CACHE BOOL "Build for WASAPI backend")
set(RTAUDIO_API_DS TRUE CACHE BOOL "Build for Directsound backend")
else() else()
set(RTAUDIO_API_PULSE TRUE CACHE BOOL "Build with PulseAudio backend" FORCE) set(RTAUDIO_API_PULSE TRUE CACHE BOOL "Build with PulseAudio backend")
set(RTAUDIO_API_ALSA OFF CACHE BOOL "Do not build with Alsa backend" FORCE) set(RTAUDIO_API_ALSA OFF CACHE BOOL "Do not build with Alsa backend")
set(RTAUDIO_API_JACK OFF CACHE BOOL "Do not build with Jack backend" FORCE) set(RTAUDIO_API_JACK OFF CACHE BOOL "Do not build with Jack backend")
endif() endif()
set(RTAUDIO_BUILD_STATIC_LIBS ON CACHE BOOL "Build static libs for RtAudio" FORCE) set(RTAUDIO_BUILD_STATIC_LIBS ON CACHE BOOL "Build static libs for RtAudio" FORCE)
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/rtaudio) add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/rtaudio)