diff options
author | Chris Robinson <[email protected]> | 2012-02-28 03:36:16 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-28 03:36:16 -0800 |
commit | 2285c79ded9ff8a636e5a361279941218d084f71 (patch) | |
tree | 4a926eae60a6bac111adbffbbd75afc3b12f10cf | |
parent | 230e784b9e072d8d3ec7e92bcb05f372ce6087b9 (diff) |
Give "OpenAL Soft" for the standard device name
-rw-r--r-- | Alc/ALc.c | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -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: |