diff options
author | Jörg Müller <nexyon@gmail.com> | 2021-03-11 21:22:56 +0300 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2021-03-17 01:21:45 +0300 |
commit | bc5798530663a9b3fec8df60feba510bd681c5ad (patch) | |
tree | 0d2587f7d3c5f9ac55d6bcee8f91afce9cf9d50b /CMakeLists.txt | |
parent | d33339ebf44855b62200a2784c046792d78c75bc (diff) |
Audaspace: add support for WASAPI on Windows
This adds WASAPI as audio backend on Windows.
WASAPI is the modern standard audio API on
Windows introduced with Windows Vista.
Ref T86590
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c9af0b2285c..360667bca86 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -317,6 +317,11 @@ if(UNIX AND NOT APPLE) else() set(WITH_PULSEAUDIO OFF) endif() +if(WIN32) + option(WITH_WASAPI "Enable Windows Audio Sessions API for audio support on Windows" ON) +else() + set(WITH_WASAPI OFF) +endif() # Compression option(WITH_LZO "Enable fast LZO compression (used for pointcache)" ON) @@ -682,6 +687,7 @@ endif() set_and_warn_dependency(WITH_AUDASPACE WITH_OPENAL OFF) set_and_warn_dependency(WITH_AUDASPACE WITH_JACK OFF) set_and_warn_dependency(WITH_AUDASPACE WITH_PULSEAUDIO OFF) +set_and_warn_dependency(WITH_AUDASPACE WITH_WASAPI OFF) if(NOT WITH_SDL AND WITH_GHOST_SDL) message(FATAL_ERROR "WITH_GHOST_SDL requires WITH_SDL") @@ -1946,6 +1952,7 @@ if(FIRST_RUN) info_cfg_option(WITH_SDL_DYNLOAD) info_cfg_option(WITH_PULSEAUDIO) info_cfg_option(WITH_PULSEAUDIO_DYNLOAD) + info_cfg_option(WITH_WASAPI) info_cfg_text("Compression:") info_cfg_option(WITH_LZMA) |