283 |
return; |
return; |
284 |
} |
} |
285 |
|
|
|
static struct audio_driver alsa_driver = { |
|
|
wave_out_write:rdpsnd_queue_write, |
|
|
wave_out_open:alsa_open, |
|
|
wave_out_close:alsa_close, |
|
|
wave_out_format_supported:alsa_format_supported, |
|
|
wave_out_set_format:alsa_set_format, |
|
|
wave_out_volume:alsa_volume, |
|
|
wave_out_play:alsa_play, |
|
|
name:"alsa", |
|
|
description:"ALSA output driver, default device: " DEFAULTDEVICE, |
|
|
next:NULL, |
|
|
}; |
|
|
|
|
286 |
struct audio_driver * |
struct audio_driver * |
287 |
alsa_register(char *options) |
alsa_register(char *options) |
288 |
{ |
{ |
289 |
|
static struct audio_driver alsa_driver; |
290 |
|
|
291 |
|
alsa_driver.wave_out_write = rdpsnd_queue_write; |
292 |
|
alsa_driver.wave_out_open = alsa_open; |
293 |
|
alsa_driver.wave_out_close = alsa_close; |
294 |
|
alsa_driver.wave_out_format_supported = alsa_format_supported; |
295 |
|
alsa_driver.wave_out_set_format = alsa_set_format; |
296 |
|
alsa_driver.wave_out_volume = alsa_volume; |
297 |
|
alsa_driver.wave_out_play = alsa_play; |
298 |
|
alsa_driver.name = xstrdup("alsa"); |
299 |
|
alsa_driver.description = xstrdup("ALSA output driver, default device: " DEFAULTDEVICE); |
300 |
|
alsa_driver.next = NULL; |
301 |
|
|
302 |
if (options) |
if (options) |
303 |
{ |
{ |
304 |
pcm_name = xstrdup(options); |
pcm_name = xstrdup(options); |