Commit 1bb5219a authored by Chris Robinson's avatar Chris Robinson Committed by Alexandre Julliard

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

parent 69b76a18
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment