src/audio/SDL_audio.c
branchSDL-1.2
changeset 6935 b6b2829cd7ef
parent 6353 dfcbd0d9209c
child 11967 e2982541c99c
equal deleted inserted replaced
6909:6cccc0beb880 6935:b6b2829cd7ef
   306 	int i = 0, idx;
   306 	int i = 0, idx;
   307 
   307 
   308 	/* Check to make sure we don't overwrite 'current_audio' */
   308 	/* Check to make sure we don't overwrite 'current_audio' */
   309 	if ( current_audio != NULL ) {
   309 	if ( current_audio != NULL ) {
   310 		SDL_AudioQuit();
   310 		SDL_AudioQuit();
       
   311 	}
       
   312 
       
   313 	/* SDL 2.0 uses the name "pulseaudio", so we'll support both */
       
   314 	if ( driver_name && SDL_strcasecmp(driver_name, "pulseaudio") == 0 ) {
       
   315 		driver_name = "pulse";
   311 	}
   316 	}
   312 
   317 
   313 	/* Select the proper audio driver */
   318 	/* Select the proper audio driver */
   314 	audio = NULL;
   319 	audio = NULL;
   315 	idx = 0;
   320 	idx = 0;