diff options
author | Chris Robinson <[email protected]> | 2009-08-27 06:09:33 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2009-08-27 06:09:33 -0700 |
commit | bb121e68a618d1881a6e35c47938ce0650d07afb (patch) | |
tree | 620e024aa067cc96d36a91e2210beffc2115220e /Alc/oss.c | |
parent | 1ec26fd789ddfcbabbeae003f286cc01062721c0 (diff) |
Rebuild device lists when retrieving them
Diffstat (limited to 'Alc/oss.c')
-rw-r--r-- | Alc/oss.c | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -473,13 +473,18 @@ BackendFuncs oss_funcs = { void alc_oss_init(BackendFuncs *func_list) { *func_list = oss_funcs; - - AppendDeviceList(oss_device); - AppendAllDeviceList(oss_device); - - AppendCaptureDeviceList(oss_device_capture); } void alc_oss_deinit(void) { } + +void alc_oss_probe(int type) +{ + if(type == DEVICE_PROBE) + AppendDeviceList(oss_device); + else if(type == ALL_DEVICE_PROBE) + AppendAllDeviceList(oss_device); + else if(type == CAPTURE_DEVICE_PROBE) + AppendCaptureDeviceList(oss_device_capture); +} |