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 <slouken@libsdl.org>
Wed, 27 Feb 2013 15:20:31 -0800
branchSDL-1.2
changeset 6935 b6b2829cd7ef
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
--- a/src/audio/SDL_audio.c	Tue Feb 19 22:05:52 2013 +0000
+++ b/src/audio/SDL_audio.c	Wed Feb 27 15:20:31 2013 -0800
@@ -310,6 +310,11 @@
 		SDL_AudioQuit();
 	}
 
+	/* SDL 2.0 uses the name "pulseaudio", so we'll support both */
+	if ( driver_name && SDL_strcasecmp(driver_name, "pulseaudio") == 0 ) {
+		driver_name = "pulse";
+	}
+
 	/* Select the proper audio driver */
 	audio = NULL;
 	idx = 0;