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/7541main
parent
04e98d2236
commit
fea2504a37
|
@ -30,6 +30,9 @@ static const AudioBootStrap *const bootstrap[] = {
|
||||||
#ifdef SDL_AUDIO_DRIVER_PULSEAUDIO
|
#ifdef SDL_AUDIO_DRIVER_PULSEAUDIO
|
||||||
&PULSEAUDIO_bootstrap,
|
&PULSEAUDIO_bootstrap,
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef SDL_AUDIO_DRIVER_PIPEWIRE
|
||||||
|
&PIPEWIRE_bootstrap,
|
||||||
|
#endif
|
||||||
#ifdef SDL_AUDIO_DRIVER_ALSA
|
#ifdef SDL_AUDIO_DRIVER_ALSA
|
||||||
&ALSA_bootstrap,
|
&ALSA_bootstrap,
|
||||||
#endif
|
#endif
|
||||||
|
@ -78,9 +81,6 @@ static const AudioBootStrap *const bootstrap[] = {
|
||||||
#ifdef SDL_AUDIO_DRIVER_JACK
|
#ifdef SDL_AUDIO_DRIVER_JACK
|
||||||
&JACK_bootstrap,
|
&JACK_bootstrap,
|
||||||
#endif
|
#endif
|
||||||
#ifdef SDL_AUDIO_DRIVER_PIPEWIRE
|
|
||||||
&PIPEWIRE_bootstrap,
|
|
||||||
#endif
|
|
||||||
#ifdef SDL_AUDIO_DRIVER_OSS
|
#ifdef SDL_AUDIO_DRIVER_OSS
|
||||||
&DSP_bootstrap,
|
&DSP_bootstrap,
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue