openal32: Watch for the generic device names, and map them to the default.
This commit is contained in:
parent
69b76a18fb
commit
1bb5219a58
|
@ -289,6 +289,12 @@ ALCdevice* CDECL wine_alcGetContextsDevice(ALCcontext *context)
|
||||||
|
|
||||||
ALCdevice* CDECL wine_alcOpenDevice(const ALCchar *devicename)
|
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);
|
return alcOpenDevice(devicename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue