diff options
author | Chris Robinson <[email protected]> | 2015-08-14 17:02:11 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-08-14 17:02:11 -0700 |
commit | c1146d27c6b35a2c18617e11c7b14fc7b1840afa (patch) | |
tree | b159570ca32093221c440047abb0fbde53da4550 | |
parent | a5aaa3c9aae895629edf54d6b085d743fb9feb7b (diff) |
Also recognize "DirectSound" and "MMSYSTEM" on Windows
-rw-r--r-- | Alc/ALc.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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; |