aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/wave.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/wave.c
parent1ec26fd789ddfcbabbeae003f286cc01062721c0 (diff)
Rebuild device lists when retrieving them
Diffstat (limited to 'Alc/wave.c')
-rw-r--r--Alc/wave.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/Alc/wave.c b/Alc/wave.c
index 47f43b66..d960588c 100644
--- a/Alc/wave.c
+++ b/Alc/wave.c
@@ -366,11 +366,16 @@ BackendFuncs wave_funcs = {
void alc_wave_init(BackendFuncs *func_list)
{
*func_list = wave_funcs;
-
- AppendDeviceList(waveDevice);
- AppendAllDeviceList(waveDevice);
}
void alc_wave_deinit(void)
{
}
+
+void alc_wave_probe(int type)
+{
+ if(type == DEVICE_PROBE)
+ AppendDeviceList(waveDevice);
+ else if(type == ALL_DEVICE_PROBE)
+ AppendAllDeviceList(waveDevice);
+}