[PATCH] wine.inf: Add empty SDL_AUDIODRIVER environment variable

Andrew Eikum aeikum at codeweavers.com
Fri Oct 28 11:52:53 CDT 2011

Copied from <http://wiki.winehq.org/Sound>:

The Windows SDL library contains support for several audio backends,
such as "winmm" and "dsound". If the SDL_AUDIODRIVER environment
variable is set, then SDL loads the matching backend, or fails if the
backend isn't available.

Since SDL is a cross-platform library, it has this same functionality on
Linux. Accordingly, some Linux distributions' SDL package will set the
SDL_AUDIODRIVER environment variable to match the Linux backend, so that
SDL-using Linux applications will use the appropriate backend (e.g.

But this creates problems for SDL applications run in Wine. The Windows
SDL library loads the Linux SDL_AUDIODRIVER environment variable, which
contains "pulse" or some other invalid backend for the Windows SDL
library, and so audio fails to initialize in SDL-using Windows
applications run through Wine.

So we put an empty SDL_AUDIODRIVER environment variable into Wine by
default so users don't have to unset it manually.
 tools/wine.inf.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-wine.inf-Add-empty-SDL_AUDIODRIVER-environment-varia.patch
Type: text/x-patch
Size: 591 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20111028/9f491205/attachment.bin>

More information about the wine-patches mailing list