aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/portaudio.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/portaudio.c
parentc93d7a1721dc8233d0a256c022ab55223c582062 (diff)
Use a proper enum for the probe type
Diffstat (limited to 'Alc/portaudio.c')
-rw-r--r--Alc/portaudio.c20
1 files changed, 13 insertions, 7 deletions
diff --git a/Alc/portaudio.c b/Alc/portaudio.c
index 82e3fcba..86ae4c64 100644
--- a/Alc/portaudio.c
+++ b/Alc/portaudio.c
@@ -430,14 +430,20 @@ void alc_pa_deinit(void)
}
}
-void alc_pa_probe(int type)
+void alc_pa_probe(enum DevProbe type)
{
if(!pa_load()) return;
- if(type == DEVICE_PROBE)
- AppendDeviceList(pa_device);
- else if(type == ALL_DEVICE_PROBE)
- AppendAllDeviceList(pa_device);
- else if(type == CAPTURE_DEVICE_PROBE)
- AppendCaptureDeviceList(pa_device);
+ switch(type)
+ {
+ case DEVICE_PROBE:
+ AppendDeviceList(pa_device);
+ break;
+ case ALL_DEVICE_PROBE:
+ AppendAllDeviceList(pa_device);
+ break;
+ case CAPTURE_DEVICE_PROBE:
+ AppendCaptureDeviceList(pa_device);
+ break;
+ }
}