diff options
author | Chris Robinson <[email protected]> | 2011-06-14 04:02:58 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-06-14 04:02:58 -0700 |
commit | 53c5275aa4ea9c42d850cf3f2d9fe589a7c84924 (patch) | |
tree | 2de994091bfee13326534878ad4f770a1e36fe56 /Alc/coreaudio.c | |
parent | c93d7a1721dc8233d0a256c022ab55223c582062 (diff) |
Use a proper enum for the probe type
Diffstat (limited to 'Alc/coreaudio.c')
-rw-r--r-- | Alc/coreaudio.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/Alc/coreaudio.c b/Alc/coreaudio.c index 4cac049f..e32e15fa 100644 --- a/Alc/coreaudio.c +++ b/Alc/coreaudio.c @@ -324,10 +324,17 @@ void alc_ca_deinit(void) { } -void alc_ca_probe(int type) +void alc_ca_probe(enum DevProbe type) { - if(type == DEVICE_PROBE) - AppendDeviceList(ca_device); - else if(type == ALL_DEVICE_PROBE) - AppendAllDeviceList(ca_device); + switch(type) + { + case DEVICE_PROBE: + AppendDeviceList(ca_device); + break; + case ALL_DEVICE_PROBE: + AppendAllDeviceList(ca_device); + break; + case CAPTURE_DEVICE_PROBE: + break; + } } |