Skip to content
Permalink
Browse files

SDL_audio.c: do the pulseaudio name dance only if SDL_AUDIO_DRIVER_PU…

…LSE is defined.
  • Loading branch information
sezero committed Mar 24, 2018
1 parent 6839d28 commit 6bb378c8ff0c4b39ce2867e9c46dd895f09cbdb7
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/audio/SDL_audio.c
@@ -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;

0 comments on commit 6bb378c

Please sign in to comment.