SDL_audio.c: do the pulseaudio name dance only if SDL_AUDIO_DRIVER_PULSE is defined. SDL-1.2
authorOzkan Sezer <sezeroz@gmail.com>
Sat, 24 Mar 2018 22:29:42 +0300
branchSDL-1.2
changeset 11967e2982541c99c
parent 11966 0c7962a4336f
child 11968 1cd1e81d6d66
SDL_audio.c: do the pulseaudio name dance only if SDL_AUDIO_DRIVER_PULSE is defined.
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Sat Mar 24 22:28:31 2018 +0300
     1.2 +++ b/src/audio/SDL_audio.c	Sat Mar 24 22:29:42 2018 +0300
     1.3 @@ -310,10 +310,12 @@
     1.4  		SDL_AudioQuit();
     1.5  	}
     1.6  
     1.7 +#if SDL_AUDIO_DRIVER_PULSE
     1.8  	/* SDL 2.0 uses the name "pulseaudio", so we'll support both */
     1.9  	if ( driver_name && SDL_strcasecmp(driver_name, "pulseaudio") == 0 ) {
    1.10  		driver_name = "pulse";
    1.11  	}
    1.12 +#endif /* */
    1.13  
    1.14  	/* Select the proper audio driver */
    1.15  	audio = NULL;