234 |
return; |
return; |
235 |
} |
} |
236 |
|
|
|
static struct audio_driver libao_driver = { |
|
|
wave_out_write:rdpsnd_queue_write, |
|
|
wave_out_open:libao_open, |
|
|
wave_out_close:libao_close, |
|
|
wave_out_format_supported:libao_format_supported, |
|
|
wave_out_set_format:libao_set_format, |
|
|
wave_out_volume:libao_volume, |
|
|
wave_out_play:libao_play, |
|
|
name:"libao", |
|
|
description:"libao output driver", |
|
|
next:NULL, |
|
|
}; |
|
|
|
|
237 |
struct audio_driver * |
struct audio_driver * |
238 |
libao_register(char *options) |
libao_register(char *options) |
239 |
{ |
{ |
240 |
|
static struct audio_driver libao_driver; |
241 |
|
|
242 |
|
libao_driver.wave_out_write = rdpsnd_queue_write; |
243 |
|
libao_driver.wave_out_open = libao_open; |
244 |
|
libao_driver.wave_out_close = libao_close; |
245 |
|
libao_driver.wave_out_format_supported = libao_format_supported; |
246 |
|
libao_driver.wave_out_set_format = libao_set_format; |
247 |
|
libao_driver.wave_out_volume = libao_volume; |
248 |
|
libao_driver.wave_out_play = libao_play; |
249 |
|
libao_driver.name = xstrdup("libao"); |
250 |
|
libao_driver.description = xstrdup("libao output driver"); |
251 |
|
libao_driver.next = NULL; |
252 |
|
|
253 |
if (options) |
if (options) |
254 |
{ |
{ |
255 |
libao_device = xstrdup(options); |
libao_device = xstrdup(options); |