aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/oss.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-08-27 06:09:33 -0700
committerChris Robinson <[email protected]>2009-08-27 06:09:33 -0700
commitbb121e68a618d1881a6e35c47938ce0650d07afb (patch)
tree620e024aa067cc96d36a91e2210beffc2115220e /Alc/oss.c
parent1ec26fd789ddfcbabbeae003f286cc01062721c0 (diff)
Rebuild device lists when retrieving them
Diffstat (limited to 'Alc/oss.c')
-rw-r--r--Alc/oss.c15
1 files changed, 10 insertions, 5 deletions
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);
+}