Skip to content

Commit

Permalink
Prioritize the pipewire audio driver over ALSA
Browse files Browse the repository at this point in the history
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 #7541
  • Loading branch information
slouken committed Nov 8, 2023
1 parent 04e98d2 commit fea2504
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/audio/SDL_audio.c
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fea2504

Please sign in to comment.