Displaying 2 results from an estimated 2 matches for "ao_get_driver_info".
2000 Dec 30
1
selecting driver for ao
...plicitly shared string classes for so long :)
It's a shame that C doesn't allow you to make parts of the
driver structures private, so that you can simply give the
user the driver list and be sure that they can't damage it :(
Hmm, I think ao_get_driver_name(int idx) is unnecessary, as
ao_get_driver_info(int driver_id) does what is needed. But
for the user of the API, they can't be sure that 'driver_id'
is actually an index.
It's probably better to just document the fact that driver
indices run from 0...driver_count and let the user use
ao_get_driver_info(). ao_get_driver_count is...
2001 Jan 02
0
ogg123: close_dsp_on_suspend and next_on_SIGUSR1 patches submission
...int bits, rate, channels;
+  devices *current;
+
+  /* Open all of the devices */
+  bits = 16;
+  rate = 44100;
+  channels = 2;
+  current = param.outdevices;
+
+  if (param.quiet < 1)
+	  fprintf(stderr, "Opening devices...\n");
+
+  while (current != NULL) {
+    ao_info_t *info = ao_get_driver_info(current->driver_id);
+
+    if (param.quiet < 1) {
+    	fprintf(stderr, "Device:   %s\n", info->name);
+    	fprintf(stderr, "Author:   %s\n", info->author);
+    	fprintf(stderr, "Comments: %s\n", info->comment);
+    }
+    
+    current->device =...