Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Allow SDL_AUDIODRIVER="pulse" to do the right thing.
(We renamed this audio target at some point; the Internet didn't get the memo.)
  • Loading branch information
icculus committed Feb 20, 2013
1 parent b6824f5 commit 9ae8cc5e2e02f53f2d8d00b4deac441b9e9e6af4
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/audio/SDL_audio.c
@@ -577,6 +577,11 @@ SDL_AudioInit(const char *driver_name)
driver_name = SDL_getenv("SDL_AUDIODRIVER");
}

/* Older versions of SDL had a different name for the PulseAudio target. */
if (driver_name && (SDL_strcmp(driver_name, "pulse") == 0)) {
driver_name = "pulseaudio";
}

for (i = 0; (!initialized) && (bootstrap[i]); ++i) {
/* make sure we should even try this driver before doing so... */
const AudioBootStrap *backend = bootstrap[i];

0 comments on commit 9ae8cc5

Please sign in to comment.