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. SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Tue, 13 Oct 2009 08:42:40 +0000
branchSDL-1.2
changeset 433033570eec2d4f
parent 4329 9716da353104
child 4331 a24454ed4ac4
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
     1.1 --- a/src/audio/SDL_audio.c	Tue Oct 13 08:27:28 2009 +0000
     1.2 +++ b/src/audio/SDL_audio.c	Tue Oct 13 08:42:40 2009 +0000
     1.3 @@ -39,6 +39,9 @@
     1.4  #if SDL_AUDIO_DRIVER_BSD
     1.5  	&BSD_AUDIO_bootstrap,
     1.6  #endif
     1.7 +#if SDL_AUDIO_DRIVER_PULSE
     1.8 +	&PULSE_bootstrap,
     1.9 +#endif
    1.10  #if SDL_AUDIO_DRIVER_ALSA
    1.11  	&ALSA_bootstrap,
    1.12  #endif
    1.13 @@ -46,9 +49,6 @@
    1.14  	&DSP_bootstrap,
    1.15  	&DMA_bootstrap,
    1.16  #endif
    1.17 -#if SDL_AUDIO_DRIVER_PULSE
    1.18 -	&PULSE_bootstrap,
    1.19 -#endif
    1.20  #if SDL_AUDIO_DRIVER_QNXNTO
    1.21  	&QNXNTOAUDIO_bootstrap,
    1.22  #endif