Re-order Linux default audio driver list

This commit is contained in:
sukibaby
2024-08-06 23:59:27 -07:00
committed by teejusb
parent beecd2bd47
commit 5a0bfed42d
+5 -4
View File
@@ -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