Explorar el Código

Prioritize the pipewire audio driver over ALSA

ALSA is used very rarely anymore and the pipewire ALSA emulation isn't as good as using pipewire directly. The Pulseaudio emulation is very good, and Pulseaudio is still commonly available on Linux systems, so we'll default to that first and fall back to pipewire if it's not available. We'll finally try ALSA, to handle very old systems.

Fixes https://github.com/libsdl-org/SDL/issues/7541
Sam Lantinga hace 2 años
padre
commit
fea2504a37
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      src/audio/SDL_audio.c

+ 3 - 3
src/audio/SDL_audio.c

@@ -30,6 +30,9 @@ static const AudioBootStrap *const bootstrap[] = {
 #ifdef SDL_AUDIO_DRIVER_PULSEAUDIO
     &PULSEAUDIO_bootstrap,
 #endif
+#ifdef SDL_AUDIO_DRIVER_PIPEWIRE
+    &PIPEWIRE_bootstrap,
+#endif
 #ifdef SDL_AUDIO_DRIVER_ALSA
     &ALSA_bootstrap,
 #endif
@@ -78,9 +81,6 @@ static const AudioBootStrap *const bootstrap[] = {
 #ifdef SDL_AUDIO_DRIVER_JACK
     &JACK_bootstrap,
 #endif
-#ifdef SDL_AUDIO_DRIVER_PIPEWIRE
-    &PIPEWIRE_bootstrap,
-#endif
 #ifdef SDL_AUDIO_DRIVER_OSS
     &DSP_bootstrap,
 #endif