search for: get_driver_info

Displaying 1 result from an estimated 1 matches for "get_driver_info".

2000 Dec 30
1
selecting driver for ao
...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; driver = driver->next; } return i; } Sorry if the API style is not right. I'm used to...