From 91830ade7edca0febfdadc8a0b4cd2b2e37d09ee Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Thu, 27 Jan 2022 14:20:43 -0500 Subject: [PATCH] audio: Prefer PipeWire over PulseAudio --- src/audio/SDL_audio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index 849416c83..9afdc0546 100644 --- a/src/audio/SDL_audio.c +++ b/src/audio/SDL_audio.c @@ -35,6 +35,9 @@ static SDL_AudioDevice *open_devices[16]; /* Available audio drivers */ static const AudioBootStrap *const bootstrap[] = { +#if SDL_AUDIO_DRIVER_PIPEWIRE + &PIPEWIRE_bootstrap, +#endif #if SDL_AUDIO_DRIVER_PULSEAUDIO &PULSEAUDIO_bootstrap, #endif @@ -107,9 +110,6 @@ static const AudioBootStrap *const bootstrap[] = { #if SDL_AUDIO_DRIVER_JACK &JACK_bootstrap, #endif -#if SDL_AUDIO_DRIVER_PIPEWIRE - &PIPEWIRE_bootstrap, -#endif #if SDL_AUDIO_DRIVER_OSS &DSP_bootstrap, #endif