Skip to content
Permalink
Browse files

Allow "pulseaudio" as well as "pulse" so SDL 1.2 and 2.0 support both…

… names for the pulseaudio driver.
  • Loading branch information
slouken committed Feb 27, 2013
1 parent ba8fea8 commit d9514097846381cd30fe08df65dbdd48de92a058
Showing with 5 additions and 0 deletions.
  1. +5 −0 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;

0 comments on commit d951409

Please sign in to comment.