diff options
author | Jörg Müller <nexyon@gmail.com> | 2021-03-02 19:29:18 +0300 |
---|---|---|
committer | Jörg Müller <nexyon@gmail.com> | 2021-03-17 01:21:45 +0300 |
commit | d33339ebf44855b62200a2784c046792d78c75bc (patch) | |
tree | 425a1d78d6c40f8b188e499cf0db2bc29e8f2d32 /CMakeLists.txt | |
parent | 7b8fc307dc4ff608fc68e2decee45bae59f0c7c9 (diff) |
Audaspace: add support for PulseAudio on Linux
This adds PulseAudio as audio backend on Linux.
PulseAudio is the main audio engine used on most,
if not all, Linux distributions today.
Ref T86590
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index c0b9b28c610..c9af0b2285c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -311,6 +311,12 @@ endif() if(UNIX AND NOT APPLE) option(WITH_SDL_DYNLOAD "Enable runtime dynamic SDL libraries loading" OFF) endif() +if(UNIX AND NOT APPLE) + option(WITH_PULSEAUDIO "Enable PulseAudio for audio support on Linux" ON) + option(WITH_PULSEAUDIO_DYNLOAD "Enable runtime dynamic PulseAudio libraries loading" OFF) +else() + set(WITH_PULSEAUDIO OFF) +endif() # Compression option(WITH_LZO "Enable fast LZO compression (used for pointcache)" ON) @@ -675,6 +681,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) if(NOT WITH_SDL AND WITH_GHOST_SDL) message(FATAL_ERROR "WITH_GHOST_SDL requires WITH_SDL") @@ -1937,6 +1944,8 @@ if(FIRST_RUN) info_cfg_option(WITH_OPENAL) info_cfg_option(WITH_SDL) info_cfg_option(WITH_SDL_DYNLOAD) + info_cfg_option(WITH_PULSEAUDIO) + info_cfg_option(WITH_PULSEAUDIO_DYNLOAD) info_cfg_text("Compression:") info_cfg_option(WITH_LZMA) |