mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 06:06:50 +00:00
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)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue