From 6bb378c8ff0c4b39ce2867e9c46dd895f09cbdb7 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 24 Mar 2018 22:29:42 +0300 Subject: [PATCH] SDL_audio.c: do the pulseaudio name dance only if SDL_AUDIO_DRIVER_PULSE is defined. --- src/audio/SDL_audio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/audio/SDL_audio.c b/src/audio/SDL_audio.c index 9babb9174..04ecebbfc 100644 --- a/src/audio/SDL_audio.c +++ b/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;