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/winmm.c | |
parent | 2ba3a88ace65803393c7f4bdb1b9e158a644d05e (diff) |
Build device lists only when needed
Diffstat (limited to 'Alc/winmm.c')
-rw-r--r-- | Alc/winmm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/winmm.c b/Alc/winmm.c index 54ec2f30..8f27519e 100644 --- a/Alc/winmm.c +++ b/Alc/winmm.c @@ -207,6 +207,9 @@ static ALCboolean WinMMOpenCapture(ALCdevice *pDevice, const ALCchar *deviceName ALint lBufferSize; ALuint i; + if(!CaptureDeviceList) + ProbeDevices(); + // Find the Device ID matching the deviceName if valid if(deviceName) { |