diff options
author | Chris Robinson <[email protected]> | 2011-08-20 02:49:15 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-08-20 02:49:15 -0700 |
commit | 529ff3197ac6b352c10ef4391ba8bc8c18a43ce5 (patch) | |
tree | f59db5989c8749ba0f9567ac9218760b986209c4 /Alc | |
parent | b036bc9e049efe97a5532b24e08640e7f5cf3934 (diff) |
Don't expose "DirectSound Default" in the ALL_DEVICES list
This is under the assumption that one of the devices in ALL_DEVICES corresponds
to the default. This is not true for all backends (eg, ALSA).
Diffstat (limited to 'Alc')
-rw-r--r-- | Alc/backends/dsound.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/Alc/backends/dsound.c b/Alc/backends/dsound.c index 08a1d13a..8a8ce3bc 100644 --- a/Alc/backends/dsound.c +++ b/Alc/backends/dsound.c @@ -122,18 +122,6 @@ static BOOL CALLBACK DSoundEnumDevices(LPGUID guid, LPCSTR desc, LPCSTR drvname, (void)data; (void)drvname; - if(NumDevices == 0) - { - temp = realloc(DeviceList, sizeof(DevMap) * (NumDevices+1)); - if(temp) - { - DeviceList = temp; - DeviceList[NumDevices].name = strdup(dsDevice); - DeviceList[NumDevices].guid = GUID_NULL; - NumDevices++; - } - } - if(!guid) return TRUE; @@ -289,8 +277,7 @@ static ALCboolean DSoundOpenPlayback(ALCdevice *device, const ALCchar *deviceNam { if(strcmp(deviceName, DeviceList[i].name) == 0) { - if(i > 0) - guid = &DeviceList[i].guid; + guid = &DeviceList[i].guid; break; } } |