Displaying 3 results from an estimated 3 matches for "driver_tree_t".
2001 May 08
2
libao AU driver
.../src/audio_out.c,v
retrieving revision 1.14
diff -u -r1.14 audio_out.c
--- src/audio_out.c 2001/05/06 00:13:59 1.14
+++ src/audio_out.c 2001/05/09 01:39:18
@@ -56,6 +56,7 @@
extern ao_functions_t ao_null;
extern ao_functions_t ao_wav;
extern ao_functions_t ao_raw;
+extern ao_functions_t ao_au;
driver_tree_t *driver_head = NULL;
@@ -99,6 +100,7 @@
driver_tree_t *dnull;
driver_tree_t *dwav;
driver_tree_t *draw;
+ driver_tree_t *dau;
driver_tree_t *plugin;
driver_tree_t *driver;
DIR *plugindir;
@@ -109,7 +111,7 @@
char fullpath[FILENAME_MAX]...
2001 Mar 16
3
Patches for NetBSD
...(ao_oss_internal_t *)state)->fd, SNDCTL_DSP_GETODELAY, &odelay); */
return odelay;
}
$NetBSD: patch-ac,v 1.1.1.1 2001/03/15 20:35:58 wiz Exp $
--- ../libao-0.6.0.orig/src/audio_out.c Fri Feb 23 17:31:46 2001
+++ src/audio_out.c Thu Mar 15 10:21:55 2001
@@ -63,7 +63,7 @@
driver_tree_t *dt;
void *handle;
- handle = dlopen(plugin_file, RTLD_NOW);
+ handle = dlopen(plugin_file, DL_LAZY);
if (handle) {
dt = (driver_tree_t *)malloc(sizeof(driver_tree_t));
if (!dt) return NULL;
$NetBSD: patch-ad,v 1.1 2001/03/16 10:10:35 wi...
2000 Dec 30
1
selecting driver for ao
...et a list of drivers and give the user a choice
by using radio buttons, e.g.
[ ] alsa
[*] oss
[ ] esd
[ ] null
[ ] wav
This is a lot nicer than just asking them to enter the name of
the driver.
Here's the code I added to audio_out.c:
const char * ao_get_driver_name(int idx)
{
int i = 0;
driver_tree_t * driver = driver_head;
while (driver)
{
if (idx == i)
return driver->functions->get_driver_info()->short_name;
++i;
driver = driver->next;
}
return NULL;
}
int ao_get_driver_count(void)
{
int i = 0;
driver_tree_t * driver = driver_head;
while (drive...