summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/audio/SDL_audio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c
index b59033a72..9babb9174 100644
--- a/src/audio/SDL_audio.c
+++ b/src/audio/SDL_audio.c
@@ -310,6 +310,11 @@ int SDL_AudioInit(const char *driver_name)
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;