aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mmdevapi.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-06-14 04:02:58 -0700
committerChris Robinson <[email protected]>2011-06-14 04:02:58 -0700
commit53c5275aa4ea9c42d850cf3f2d9fe589a7c84924 (patch)
tree2de994091bfee13326534878ad4f770a1e36fe56 /Alc/mmdevapi.c
parentc93d7a1721dc8233d0a256c022ab55223c582062 (diff)
Use a proper enum for the probe type
Diffstat (limited to 'Alc/mmdevapi.c')
-rw-r--r--Alc/mmdevapi.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/Alc/mmdevapi.c b/Alc/mmdevapi.c
index 44ef45bc..abfa9fe6 100644
--- a/Alc/mmdevapi.c
+++ b/Alc/mmdevapi.c
@@ -561,12 +561,19 @@ void alcMMDevApiDeinit(void)
}
}
-void alcMMDevApiProbe(int type)
+void alcMMDevApiProbe(enum DevProbe type)
{
if(!MMDevApiLoad()) return;
- if(type == DEVICE_PROBE)
- AppendDeviceList(mmDevice);
- else if(type == ALL_DEVICE_PROBE)
- AppendAllDeviceList(mmDevice);
+ switch(type)
+ {
+ case DEVICE_PROBE:
+ AppendDeviceList(mmDevice);
+ break;
+ case ALL_DEVICE_PROBE:
+ AppendAllDeviceList(mmDevice);
+ break;
+ case CAPTURE_DEVICE_PROBE:
+ break;
+ }
}