From 5036b3966dfeccdaeb76af0e4d0bcdf5fedc4ed6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 13 Oct 2009 08:42:40 +0000 Subject: [PATCH] On recent distributions ALSA pipes streams through PulseAudio anyway, so using PulseAudio first when it's available will improve latency and reduce ALSA configuration quirks. --- 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 610f4ec12..bdeacdc4e 100644 --- a/src/audio/SDL_audio.c +++ b/src/audio/SDL_audio.c @@ -39,6 +39,9 @@ static AudioBootStrap *bootstrap[] = { #if SDL_AUDIO_DRIVER_BSD &BSD_AUDIO_bootstrap, #endif +#if SDL_AUDIO_DRIVER_PULSE + &PULSE_bootstrap, +#endif #if SDL_AUDIO_DRIVER_ALSA &ALSA_bootstrap, #endif @@ -46,9 +49,6 @@ static AudioBootStrap *bootstrap[] = { &DSP_bootstrap, &DMA_bootstrap, #endif -#if SDL_AUDIO_DRIVER_PULSE - &PULSE_bootstrap, -#endif #if SDL_AUDIO_DRIVER_QNXNTO &QNXNTOAUDIO_bootstrap, #endif