src/audio/SDL_audio.c
changeset 6904 9fea506e48ab
parent 6900 767690d1c013
child 6905 4882bcc19578
equal deleted inserted replaced
6903:0544fb94e265 6904:9fea506e48ab
   575     /* Select the proper audio driver */
   575     /* Select the proper audio driver */
   576     if (driver_name == NULL) {
   576     if (driver_name == NULL) {
   577         driver_name = SDL_getenv("SDL_AUDIODRIVER");
   577         driver_name = SDL_getenv("SDL_AUDIODRIVER");
   578     }
   578     }
   579 
   579 
       
   580     /* Older versions of SDL had a different name for the PulseAudio target. */
       
   581     if (driver_name && (SDL_strcmp(driver_name, "pulse") == 0)) {
       
   582         driver_name = "pulseaudio";
       
   583     }
       
   584 
   580     for (i = 0; (!initialized) && (bootstrap[i]); ++i) {
   585     for (i = 0; (!initialized) && (bootstrap[i]); ++i) {
   581         /* make sure we should even try this driver before doing so... */
   586         /* make sure we should even try this driver before doing so... */
   582         const AudioBootStrap *backend = bootstrap[i];
   587         const AudioBootStrap *backend = bootstrap[i];
   583         if ((driver_name && (SDL_strncasecmp(backend->name, driver_name, SDL_strlen(driver_name)) != 0)) ||
   588         if ((driver_name && (SDL_strncasecmp(backend->name, driver_name, SDL_strlen(driver_name)) != 0)) ||
   584             (!driver_name && backend->demand_only)) {
   589             (!driver_name && backend->demand_only)) {