From 5a0bfed42d0ea835810c83181a6a7bd80e57c744 Mon Sep 17 00:00:00 2001 From: sukibaby <163092272+sukibaby@users.noreply.github.com> Date: Thu, 1 Aug 2024 20:14:28 -0700 Subject: [PATCH] Re-order Linux default audio driver list --- src/arch/arch_default.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/arch/arch_default.h b/src/arch/arch_default.h index 99dd27d7fd..6287b07746 100644 --- a/src/arch/arch_default.h +++ b/src/arch/arch_default.h @@ -39,14 +39,15 @@ #define DEFAULT_INPUT_DRIVER_LIST "X11" #endif #define DEFAULT_MOVIE_DRIVER_LIST "FFMpeg,Null" -// ALSA comes first, as the system may have OSS compat but we don't want to use -// it if it's actually an ALSA wrapper. +// PulseAudio is the preferred Unix driver since it allows the gives non +// exclusive access to the audio device, unlike ALSA. +// Use ALSA next because it is the lowest latency. // Then try OSS before daemon drivers so we're going direct instead of // unwittingly starting a daemon. -// JACK gives us an explicit option to NOT start a daemon, so try it third, +// JACK gives us an explicit option to NOT start a daemon, so try it last, // as PulseAudio will successfully Init() but not actually work if the // PulseAudio daemon has been suspended by/for jackd. -#define DEFAULT_SOUND_DRIVER_LIST "ALSA-sw,OSS,JACK,Pulse,Null" +#define DEFAULT_SOUND_DRIVER_LIST "Pulse,ALSA-sw,OSS,JACK,Null" #else #error Which arch? #endif