Allow "pulseaudio" as well as "pulse" so SDL 1.2 and 2.0 support both names for the pulseaudio driver. SDL-1.2
authorSam Lantinga
Wed, 27 Feb 2013 15:20:31 -0800
branchSDL-1.2
changeset 6935b6b2829cd7ef
parent 6909 6cccc0beb880
child 7069 f7fd5c3951b9
Allow "pulseaudio" as well as "pulse" so SDL 1.2 and 2.0 support both names for the pulseaudio driver.
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Tue Feb 19 22:05:52 2013 +0000
     1.2 +++ b/src/audio/SDL_audio.c	Wed Feb 27 15:20:31 2013 -0800
     1.3 @@ -310,6 +310,11 @@
     1.4  		SDL_AudioQuit();
     1.5  	}
     1.6  
     1.7 +	/* SDL 2.0 uses the name "pulseaudio", so we'll support both */
     1.8 +	if ( driver_name && SDL_strcasecmp(driver_name, "pulseaudio") == 0 ) {
     1.9 +		driver_name = "pulse";
    1.10 +	}
    1.11 +
    1.12  	/* Select the proper audio driver */
    1.13  	audio = NULL;
    1.14  	idx = 0;