aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-08-13 21:18:39 -0700
committerChris Robinson <[email protected]>2015-08-13 21:18:39 -0700
commita5aaa3c9aae895629edf54d6b085d743fb9feb7b (patch)
tree9d97eb467ed3cd17fda90e8840cd17866b27267f /Alc/ALc.c
parent7d4e3688e1101ade56bb0769dcb28686dbc4d6e4 (diff)
Recognize "DirectSound3D" as a device name on Windows
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 8dc6d208..e1891041 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -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));