src/audio/SDL_audio.c
changeset 6905 4882bcc19578
parent 6904 9fea506e48ab
child 6977 b73d51026c68
equal deleted inserted replaced
6904:9fea506e48ab 6905:4882bcc19578
   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 
       
   585     for (i = 0; (!initialized) && (bootstrap[i]); ++i) {
   580     for (i = 0; (!initialized) && (bootstrap[i]); ++i) {
   586         /* make sure we should even try this driver before doing so... */
   581         /* make sure we should even try this driver before doing so... */
   587         const AudioBootStrap *backend = bootstrap[i];
   582         const AudioBootStrap *backend = bootstrap[i];
   588         if ((driver_name && (SDL_strncasecmp(backend->name, driver_name, SDL_strlen(driver_name)) != 0)) ||
   583         if ((driver_name && (SDL_strncasecmp(backend->name, driver_name, SDL_strlen(driver_name)) != 0)) ||
   589             (!driver_name && backend->demand_only)) {
   584             (!driver_name && backend->demand_only)) {