Removed alsa backend for now
This commit is contained in:
+3
-4
@@ -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
|
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__:
|
__Optional dependencies__:
|
||||||
* libpam0g-dev, used to handle PAM authentication
|
* `libpam0g-dev`: used to handle PAM authentication
|
||||||
* libpulse-dev, used to output audio using PulseAudio
|
* `libpulse-dev`: used to output audio via PulseAudio in jukebox mode
|
||||||
* libasound2-dev, used to output audio using ALSA
|
|
||||||
|
|
||||||
__Notes__:
|
__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).</br>
|
You also need _Wt4_, which is not packaged on _Debian_. See [installation instructions](https://www.webtoolkit.eu/wt/doc/reference/html/InstallationUnix.html).</br>
|
||||||
### Build
|
### Build
|
||||||
Get the latest stable release and build it:
|
Get the latest stable release and build it:
|
||||||
|
|||||||
+1
-1
@@ -145,5 +145,5 @@ ui-playqueue-max-entry-count = 1000;
|
|||||||
ui-allow-downloads = true;
|
ui-allow-downloads = true;
|
||||||
|
|
||||||
# Jukebox settings
|
# 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";
|
jukebox-audio-backend = "auto";
|
||||||
@@ -37,8 +37,6 @@ namespace lms::audio
|
|||||||
case AudioOutputBackend::Auto:
|
case AudioOutputBackend::Auto:
|
||||||
#if LMS_HAVE_PULSEAUDIO
|
#if LMS_HAVE_PULSEAUDIO
|
||||||
context = std::make_unique<pulseaudio::AudioOutputContext>(ioContext, name);
|
context = std::make_unique<pulseaudio::AudioOutputContext>(ioContext, name);
|
||||||
#elif LMS_HAVE_ALSA
|
|
||||||
context = std::make_unique<alsa::AudioOutputContext>(ioContext, name);
|
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|||||||
@@ -100,8 +100,6 @@ namespace lms
|
|||||||
{
|
{
|
||||||
std::string_view backend{ core::Service<core::IConfig>::get()->getString("jukebox-audio-backend", "auto") };
|
std::string_view backend{ core::Service<core::IConfig>::get()->getString("jukebox-audio-backend", "auto") };
|
||||||
|
|
||||||
if (backend == "alsa")
|
|
||||||
return audio::AudioOutputBackend::ALSA;
|
|
||||||
if (backend == "pulseaudio")
|
if (backend == "pulseaudio")
|
||||||
return audio::AudioOutputBackend::PulseAudio;
|
return audio::AudioOutputBackend::PulseAudio;
|
||||||
if (backend == "auto")
|
if (backend == "auto")
|
||||||
|
|||||||
Reference in New Issue
Block a user