Skip to content

Commit

Permalink
SDL_audio.c: do the pulseaudio name dance only if SDL_AUDIO_DRIVER_PU…
Browse files Browse the repository at this point in the history
…LSE is defined.
  • Loading branch information
sezero committed Mar 24, 2018
1 parent 6839d28 commit 6bb378c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/audio/SDL_audio.c
Expand Up @@ -310,10 +310,12 @@ int SDL_AudioInit(const char *driver_name)
SDL_AudioQuit();
}

#if SDL_AUDIO_DRIVER_PULSE
/* SDL 2.0 uses the name "pulseaudio", so we'll support both */
if ( driver_name && SDL_strcasecmp(driver_name, "pulseaudio") == 0 ) {
driver_name = "pulse";
}
#endif /* */

/* Select the proper audio driver */
audio = NULL;
Expand Down

0 comments on commit 6bb378c

Please sign in to comment.