From e03df97919d9f464994f8e439fa230549ea69509 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 10 Jul 2011 22:36:10 -0700 Subject: Accept "openal soft" and "openal-soft" to open a device --- Alc/ALc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/ALc.c') 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)); -- cgit v1.2.3