summaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-10 22:36:10 -0700
committerChris Robinson <[email protected]>2011-07-10 22:36:10 -0700
commite03df97919d9f464994f8e439fa230549ea69509 (patch)
tree97b7a9d033df42c0ff776dc9a94e3eb39046d6a6 /Alc/ALc.c
parent7bedd9ef7a62e705cee4995667ae7fcac54249b1 (diff)
Accept "openal soft" and "openal-soft" to open a device
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index ced9683b..e83bee76 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1572,7 +1572,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcCaptureOpenDevice(const ALCchar *deviceName,
return NULL;
}
- if(deviceName && !deviceName[0])
+ if(deviceName && (!deviceName[0] || strcasecmp(deviceName, "openal soft") == 0 || strcasecmp(deviceName, "openal-soft") == 0))
deviceName = NULL;
device = calloc(1, sizeof(ALCdevice));
@@ -2613,7 +2613,7 @@ ALC_API ALCdevice* ALC_APIENTRY alcOpenDevice(const ALCchar *deviceName)
DO_INITCONFIG();
- if(deviceName && !deviceName[0])
+ if(deviceName && (!deviceName[0] || strcasecmp(deviceName, "openal soft") == 0 || strcasecmp(deviceName, "openal-soft") == 0))
deviceName = NULL;
device = calloc(1, sizeof(ALCdevice));