Module: wine Branch: master Commit: 1bb5219a5832d6d7dcddf046180f313769d9b3c2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=1bb5219a5832d6d7dcddf04618... Author: Chris Robinson <chris.kcat(a)gmail.com> Date: Wed Sep 30 08:37:54 2009 -0700 openal32: Watch for the generic device names, and map them to the default. --- dlls/openal32/openal.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/dlls/openal32/openal.c b/dlls/openal32/openal.c index 792a870..88bfc9c 100644 --- a/dlls/openal32/openal.c +++ b/dlls/openal32/openal.c @@ -289,6 +289,12 @@ ALCdevice* CDECL wine_alcGetContextsDevice(ALCcontext *context) ALCdevice* CDECL wine_alcOpenDevice(const ALCchar *devicename) { + if(devicename != NULL && (strcmp(devicename, "DirectSound3D") == 0 || + strcmp(devicename, "DirectSound") == 0 || + strcmp(devicename, "Generic Hardware") == 0 || + strcmp(devicename, "Generic Software") == 0)) { + devicename = NULL; + } return alcOpenDevice(devicename); }