aboutsummaryrefslogtreecommitdiffstats
path: root/alc/alc.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-06-04 13:00:58 -0700
committerChris Robinson <[email protected]>2022-06-04 13:00:58 -0700
commit862628966dc3fd61efb04baa9ac285719af107d2 (patch)
tree133849866537912ebad440dd3196f18f755ae8cc /alc/alc.cpp
parentcdd9a2177c0400ee3d894cd24fe43abb1e7b703c (diff)
Increase the priority of the ALSA backend
So that it's tried before sndio. Many Linux systems seem to have libsndio installed as a hard dependency from SDL2, but not the server component to actually make it work. And because there's no way to test if it's usable without opening a device, the backend would get selected over ALSA and subsequently fail to work. As a result, Linux users that don't use PipeWire or PulseAudio would have to explicitly configure for ALSA.
Diffstat (limited to 'alc/alc.cpp')
-rw-r--r--alc/alc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/alc/alc.cpp b/alc/alc.cpp
index 7ca3813f..73c0b2da 100644
--- a/alc/alc.cpp
+++ b/alc/alc.cpp
@@ -223,15 +223,15 @@ BackendInfo BackendList[] = {
#ifdef HAVE_OPENSL
{ "opensl", OSLBackendFactory::getFactory },
#endif
+#ifdef HAVE_ALSA
+ { "alsa", AlsaBackendFactory::getFactory },
+#endif
#ifdef HAVE_SOLARIS
{ "solaris", SolarisBackendFactory::getFactory },
#endif
#ifdef HAVE_SNDIO
{ "sndio", SndIOBackendFactory::getFactory },
#endif
-#ifdef HAVE_ALSA
- { "alsa", AlsaBackendFactory::getFactory },
-#endif
#ifdef HAVE_OSS
{ "oss", OSSBackendFactory::getFactory },
#endif