2022-10-05 09:27:46 +00:00
|
|
|
# ###################################### RtAudio
|
|
|
|
if(LASP_HAS_RTAUDIO)
|
|
|
|
message("Building RtAudio backend")
|
|
|
|
if(WIN32)
|
2023-05-12 13:41:16 +00:00
|
|
|
set(RTAUDIO_API_WASAPI FALSE CACHE BOOL "Build for WASAPI backend")
|
|
|
|
set(RTAUDIO_API_DS TRUE CACHE BOOL "Build for Directsound backend")
|
2022-10-05 09:27:46 +00:00
|
|
|
else()
|
2023-05-12 13:41:16 +00:00
|
|
|
set(RTAUDIO_API_PULSE TRUE CACHE BOOL "Build with PulseAudio backend")
|
|
|
|
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")
|
2022-10-05 09:27:46 +00:00
|
|
|
endif()
|
|
|
|
set(RTAUDIO_BUILD_STATIC_LIBS ON CACHE BOOL "Build static libs for RtAudio" FORCE)
|
2023-05-03 19:44:32 +00:00
|
|
|
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/rtaudio)
|
2022-10-05 09:27:46 +00:00
|
|
|
endif()
|