diff options
author | Chris Robinson <[email protected]> | 2010-03-09 06:09:29 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-03-09 06:09:29 -0800 |
commit | 8feb089f5ca9166810cb2655356db2006cd22496 (patch) | |
tree | c998636a4749690683d471d366f52b24d5cc729e /Alc/ALc.c | |
parent | 2ba3a88ace65803393c7f4bdb1b9e158a644d05e (diff) |
Build device lists only when needed
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r-- | Alc/ALc.c | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -681,9 +681,6 @@ ALCAPI ALCdevice* ALCAPIENTRY alcCaptureOpenDevice(const ALCchar *deviceName, AL if(deviceName && !deviceName[0]) deviceName = NULL; - if(!alcCaptureDeviceList) - ProbeCaptureDeviceList(); - pDevice = malloc(sizeof(ALCdevice)); if (pDevice) { @@ -1689,11 +1686,6 @@ ALCAPI ALCdevice* ALCAPIENTRY alcOpenDevice(const ALCchar *deviceName) if(deviceName && !deviceName[0]) deviceName = NULL; - if(!alcDeviceList) - ProbeDeviceList(); - if(!alcAllDeviceList) - ProbeAllDeviceList(); - device = malloc(sizeof(ALCdevice)); if (device) { |