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
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user