summaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-02-28 03:36:16 -0800
committerChris Robinson <[email protected]>2012-02-28 03:36:16 -0800
commit2285c79ded9ff8a636e5a361279941218d084f71 (patch)
tree4a926eae60a6bac111adbffbbd75afc3b12f10cf /Alc
parent230e784b9e072d8d3ec7e92bcb05f372ce6087b9 (diff)
Give "OpenAL Soft" for the standard device name
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 18e41297..e4318fa6 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1857,18 +1857,20 @@ ALC_API const ALCchar* ALC_APIENTRY alcGetString(ALCdevice *pDevice,ALCenum para
break;
case ALC_DEVICE_SPECIFIER:
- if(!VerifyDevice(pDevice))
- value = alcDefaultName;
- else
+ value = alcDefaultName;
+ break;
+
+ case ALC_ALL_DEVICES_SPECIFIER:
+ if(VerifyDevice(pDevice))
{
value = pDevice->szDeviceName;
ALCdevice_DecRef(pDevice);
}
- break;
-
- case ALC_ALL_DEVICES_SPECIFIER:
- ProbeAllDeviceList();
- value = alcAllDeviceList;
+ else
+ {
+ ProbeAllDeviceList();
+ value = alcAllDeviceList;
+ }
break;
case ALC_CAPTURE_DEVICE_SPECIFIER: