Allow SDL_AUDIODRIVER="pulse" to do the right thing.
(We renamed this audio target at some point; the Internet didn't get the memo.)
--- a/src/audio/SDL_audio.c Tue Feb 19 07:05:15 2013 -0800
+++ b/src/audio/SDL_audio.c Wed Feb 20 13:25:38 2013 -0500
@@ -577,6 +577,11 @@
driver_name = SDL_getenv("SDL_AUDIODRIVER");
}
+ /* Older versions of SDL had a different name for the PulseAudio target. */
+ if (driver_name && (SDL_strcmp(driver_name, "pulse") == 0)) {
+ driver_name = "pulseaudio";
+ }
+
for (i = 0; (!initialized) && (bootstrap[i]); ++i) {
/* make sure we should even try this driver before doing so... */
const AudioBootStrap *backend = bootstrap[i];