234 |
libao_register(char *options) |
libao_register(char *options) |
235 |
{ |
{ |
236 |
static struct audio_driver libao_driver; |
static struct audio_driver libao_driver; |
237 |
|
struct ao_info *libao_info; |
238 |
static char description[101]; |
static char description[101]; |
239 |
|
|
240 |
libao_driver.wave_out_write = rdpsnd_queue_write; |
libao_driver.wave_out_write = rdpsnd_queue_write; |
250 |
libao_driver.next = NULL; |
libao_driver.next = NULL; |
251 |
|
|
252 |
ao_initialize(); |
ao_initialize(); |
253 |
snprintf(description, 100, "libao output driver, default device: %s", |
|
254 |
ao_driver_info(ao_default_driver_id())->short_name); |
libao_info = ao_driver_info(ao_default_driver_id()); |
255 |
|
|
256 |
|
if (libao_info) |
257 |
|
{ |
258 |
|
snprintf(description, 100, "libao output driver, default device: %s", |
259 |
|
libao_info->short_name); |
260 |
|
} |
261 |
|
else |
262 |
|
{ |
263 |
|
snprintf(description, 100, "libao output driver, default device: none"); |
264 |
|
} |
265 |
|
|
266 |
ao_shutdown(); |
ao_shutdown(); |
267 |
|
|
268 |
if (options) |
if (options) |