aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/winmm.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2010-03-09 06:09:29 -0800
committerChris Robinson <[email protected]>2010-03-09 06:09:29 -0800
commit8feb089f5ca9166810cb2655356db2006cd22496 (patch)
treec998636a4749690683d471d366f52b24d5cc729e /Alc/winmm.c
parent2ba3a88ace65803393c7f4bdb1b9e158a644d05e (diff)
Build device lists only when needed
Diffstat (limited to 'Alc/winmm.c')
-rw-r--r--Alc/winmm.c3
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)
{