openal32: Watch for the generic device names, and map them to the default.

This commit is contained in:
Chris Robinson 2009-09-30 08:37:54 -07:00 committed by Alexandre Julliard
parent 69b76a18fb
commit 1bb5219a58
1 changed files with 6 additions and 0 deletions

View File

@ -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);
}