aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-08-14 17:02:11 -0700
committerChris Robinson <[email protected]>2015-08-14 17:02:11 -0700
commitc1146d27c6b35a2c18617e11c7b14fc7b1840afa (patch)
treeb159570ca32093221c440047abb0fbde53da4550 /Alc
parenta5aaa3c9aae895629edf54d6b085d743fb9feb7b (diff)
Also recognize "DirectSound" and "MMSYSTEM" on Windows
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index e1891041..6482511f 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -3351,10 +3351,12 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
if(deviceName && (!deviceName[0] || strcasecmp(deviceName, alcDefaultName) == 0 || strcasecmp(deviceName, "openal-soft") == 0
#ifdef _WIN32
- /* Some old Windows apps hardcode this expecting hardware-accelerated
- * OpenAL, even when it's not enumerated.
+ /* Some old Windows apps hardcode these expecting OpenAL to use a
+ * specific audio API, even when they're not enumerated. Creative's
+ * router effectively ignores them too.
*/
- || strcasecmp(deviceName, "DirectSound3D") == 0
+ || strcasecmp(deviceName, "DirectSound3D") == 0 || strcasecmp(deviceName, "DirectSound") == 0
+ || strcasecmp(deviceName, "MMSYSTEM") == 0
#endif
))
deviceName = NULL;