aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2021-08-14 20:14:12 -0700
committerChris Robinson <[email protected]>2021-08-14 20:14:12 -0700
commit3154684f97030db0e66d02ff3c4cdfe7b5b8789f (patch)
treea6800a00604328ff881898472ac4df55ccb78470
parent4800749c8e9822fba07408e132357786b83ea761 (diff)
Reduce the JACK and ALSA backend priority
With the increased use of PipeWire, which offers JACK compatibility, the JACK backend has a higher potential to be auto-selected for users. However, due to the backend's inability to auto-configure output to the device format, this creates a less optimal out-of-the-box experience. Unfortunately this also means the JACK backend won't be used automatically when a real JACK server is running along with PulseAudio. While not ideal, this is probably the better of the two options, to have the user explicitly configure the library to use JACK when they really want to use it, instead of unwantingly selecting JACK because of PipeWire.
-rw-r--r--alc/alc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 6c68a995..4ba1ee48 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -200,15 +200,9 @@ struct BackendInfo {
};
BackendInfo BackendList[] = {
-#ifdef HAVE_JACK
- { "jack", JackBackendFactory::getFactory },
-#endif
#ifdef HAVE_PULSEAUDIO
{ "pulse", PulseBackendFactory::getFactory },
#endif
-#ifdef HAVE_ALSA
- { "alsa", AlsaBackendFactory::getFactory },
-#endif
#ifdef HAVE_WASAPI
{ "wasapi", WasapiBackendFactory::getFactory },
#endif
@@ -227,6 +221,12 @@ BackendInfo BackendList[] = {
#ifdef HAVE_SNDIO
{ "sndio", SndIOBackendFactory::getFactory },
#endif
+#ifdef HAVE_JACK
+ { "jack", JackBackendFactory::getFactory },
+#endif
+#ifdef HAVE_ALSA
+ { "alsa", AlsaBackendFactory::getFactory },
+#endif
#ifdef HAVE_OSS
{ "oss", OSSBackendFactory::getFactory },
#endif