diff options
author | Chris Robinson <[email protected]> | 2015-08-13 21:18:39 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-08-13 21:18:39 -0700 |
commit | a5aaa3c9aae895629edf54d6b085d743fb9feb7b (patch) | |
tree | 9d97eb467ed3cd17fda90e8840cd17866b27267f /Alc | |
parent | 7d4e3688e1101ade56bb0769dcb28686dbc4d6e4 (diff) |
Recognize "DirectSound3D" as a device name on Windows
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/ALc.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -3349,7 +3349,14 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName) return NULL; } - if(deviceName && (!deviceName[0] || strcasecmp(deviceName, alcDefaultName) == 0 || strcasecmp(deviceName, "openal-soft") == 0)) + 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. + */ + || strcasecmp(deviceName, "DirectSound3D") == 0 +#endif + )) deviceName = NULL; device = al_calloc(16, sizeof(ALCdevice)+sizeof(ALeffectslot)); |