src/audio/SDL_audio.c
branchSDL-1.2
changeset 6935 b6b2829cd7ef
parent 6353 dfcbd0d9209c
child 11967 e2982541c99c
     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;