From bdcbd11e8755b550a6c6dda185a2c5868fbce3c0 Mon Sep 17 00:00:00 2001 From: emeric Date: Wed, 18 Feb 2026 19:32:43 +0100 Subject: [PATCH] Removed alsa backend for now --- INSTALL.md | 7 +++---- conf/lms.conf | 2 +- src/libs/audio/impl/AudioOutput.cpp | 2 -- src/lms/main.cpp | 2 -- 4 files changed, 4 insertions(+), 9 deletions(-) diff --git a/INSTALL.md b/INSTALL.md index 3790e001..b5d795b9 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -40,12 +40,11 @@ __Notes__: apt-get install build-essential cmake libboost-program-options-dev libboost-system-dev libavutil-dev libavformat-dev libswresample-dev ffmpeg libconfig++-dev libstb-dev libtag-dev libpugixml-dev libgtest-dev libarchive-dev libxxhash-dev libssl-dev ``` __Optional dependencies__: -* libpam0g-dev, used to handle PAM authentication -* libpulse-dev, used to output audio using PulseAudio -* libasound2-dev, used to output audio using ALSA +* `libpam0g-dev`: used to handle PAM authentication +* `libpulse-dev`: used to output audio via PulseAudio in jukebox mode __Notes__: -* libstb-dev can be replaced by libgraphicsmagick++1-dev (the latter will likely use more RAM) +* `libstb-dev` can be replaced by `libgraphicsmagick++1-dev` (the latter will likely use more RAM) You also need _Wt4_, which is not packaged on _Debian_. See [installation instructions](https://www.webtoolkit.eu/wt/doc/reference/html/InstallationUnix.html).
### Build Get the latest stable release and build it: diff --git a/conf/lms.conf b/conf/lms.conf index aa7f202d..98a817e3 100644 --- a/conf/lms.conf +++ b/conf/lms.conf @@ -145,5 +145,5 @@ ui-playqueue-max-entry-count = 1000; ui-allow-downloads = true; # Jukebox settings -# Available backends are "alsa", "pulseaudio". You can also use "auto" to auto select and "none" to disable jukebox +# Available backend is "pulseaudio". You can also use "auto" to auto select and "none" to disable jukebox jukebox-audio-backend = "auto"; \ No newline at end of file diff --git a/src/libs/audio/impl/AudioOutput.cpp b/src/libs/audio/impl/AudioOutput.cpp index 39d03f5b..7c092eb8 100644 --- a/src/libs/audio/impl/AudioOutput.cpp +++ b/src/libs/audio/impl/AudioOutput.cpp @@ -37,8 +37,6 @@ namespace lms::audio case AudioOutputBackend::Auto: #if LMS_HAVE_PULSEAUDIO context = std::make_unique(ioContext, name); -#elif LMS_HAVE_ALSA - context = std::make_unique(ioContext, name); #endif break; diff --git a/src/lms/main.cpp b/src/lms/main.cpp index 9308cdc5..c0ff2c3b 100644 --- a/src/lms/main.cpp +++ b/src/lms/main.cpp @@ -100,8 +100,6 @@ namespace lms { std::string_view backend{ core::Service::get()->getString("jukebox-audio-backend", "auto") }; - if (backend == "alsa") - return audio::AudioOutputBackend::ALSA; if (backend == "pulseaudio") return audio::AudioOutputBackend::PulseAudio; if (backend == "auto")