Displaying 3 results from an estimated 3 matches for "driver_head".
2001 May 08
2
libao AU driver
...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];
         i...
2000 Dec 30
1
selecting driver for ao
...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 (driver)
  {
    ++i;
    dri...
2009 Oct 06
0
[ao] Two patches for libao2
...ons;
>  } ao_config;
>  
>  /* --- Functions --- */
> diff --git a/src/audio_out.c b/src/audio_out.c
> index 6e39047..14012e4 100644
> --- a/src/audio_out.c
> +++ b/src/audio_out.c
> @@ -95,7 +95,8 @@ static ao_functions *static_drivers[] = {
>  
>  static driver_list *driver_head = NULL;
>  static ao_config config = {
> -	NULL /* default_driver */
> +	NULL, /* default_driver */
> +	NULL, /* options */
>  };
>  
>  static ao_info **info_table = NULL;
> @@ -501,7 +502,10 @@ static ao_device* _open_device(int driver_id, ao_sample_format *format,
>...