src/audio/SDL_audio.c
changeset 6904 9fea506e48ab
parent 6900 767690d1c013
child 6905 4882bcc19578
     1.1 --- a/src/audio/SDL_audio.c	Tue Feb 19 07:05:15 2013 -0800
     1.2 +++ b/src/audio/SDL_audio.c	Wed Feb 20 13:25:38 2013 -0500
     1.3 @@ -577,6 +577,11 @@
     1.4          driver_name = SDL_getenv("SDL_AUDIODRIVER");
     1.5      }
     1.6  
     1.7 +    /* Older versions of SDL had a different name for the PulseAudio target. */
     1.8 +    if (driver_name && (SDL_strcmp(driver_name, "pulse") == 0)) {
     1.9 +        driver_name = "pulseaudio";
    1.10 +    }
    1.11 +
    1.12      for (i = 0; (!initialized) && (bootstrap[i]); ++i) {
    1.13          /* make sure we should even try this driver before doing so... */
    1.14          const AudioBootStrap *backend = bootstrap[i];