aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/null.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/null.c
parentc93d7a1721dc8233d0a256c022ab55223c582062 (diff)
Use a proper enum for the probe type
Diffstat (limited to 'Alc/null.c')
-rw-r--r--Alc/null.c17
1 files changed, 12 insertions, 5 deletions
diff --git a/Alc/null.c b/Alc/null.c
index 1a08de8f..37a0fa14 100644
--- a/Alc/null.c
+++ b/Alc/null.c
@@ -173,10 +173,17 @@ void alc_null_deinit(void)
{
}
-void alc_null_probe(int type)
+void alc_null_probe(enum DevProbe type)
{
- if(type == DEVICE_PROBE)
- AppendDeviceList(nullDevice);
- else if(type == ALL_DEVICE_PROBE)
- AppendAllDeviceList(nullDevice);
+ switch(type)
+ {
+ case DEVICE_PROBE:
+ AppendDeviceList(nullDevice);
+ break;
+ case ALL_DEVICE_PROBE:
+ AppendAllDeviceList(nullDevice);
+ break;
+ case CAPTURE_DEVICE_PROBE:
+ break;
+ }
}