From bb121e68a618d1881a6e35c47938ce0650d07afb Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 27 Aug 2009 06:09:33 -0700 Subject: Rebuild device lists when retrieving them --- Alc/oss.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'Alc/oss.c') diff --git a/Alc/oss.c b/Alc/oss.c index 6b476ee4..8e0cd8ec 100644 --- a/Alc/oss.c +++ b/Alc/oss.c @@ -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); +} -- cgit v1.2.3