diff options
author | Chris Robinson <[email protected]> | 2011-07-10 22:36:10 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-07-10 22:36:10 -0700 |
commit | e03df97919d9f464994f8e439fa230549ea69509 (patch) | |
tree | 97b7a9d033df42c0ff776dc9a94e3eb39046d6a6 /Alc/ALc.c | |
parent | 7bedd9ef7a62e705cee4995667ae7fcac54249b1 (diff) |
Accept "openal soft" and "openal-soft" to open a device
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); |