Skip to content

Commit

Permalink
Allow "pulseaudio" as well as "pulse" so SDL 1.2 and 2.0 support both…
Browse files Browse the repository at this point in the history
… names for the pulseaudio driver.
  • Loading branch information
slouken committed Feb 27, 2013
1 parent ba8fea8 commit d951409
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/audio/SDL_audio.c
Expand Up @@ -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;
Expand Down

0 comments on commit d951409

Please sign in to comment.