272 |
} |
} |
273 |
} |
} |
274 |
|
|
|
static struct audio_driver sun_driver = { |
|
|
wave_out_write:rdpsnd_queue_write, |
|
|
wave_out_open:sun_open, |
|
|
wave_out_close:sun_close, |
|
|
wave_out_format_supported:sun_format_supported, |
|
|
wave_out_set_format:sun_set_format, |
|
|
wave_out_volume:sun_volume, |
|
|
wave_out_play:sun_play, |
|
|
name:"sun", |
|
|
description:"SUN/BSD output driver, default device: " DEFAULTDEVICE " or $AUDIODEV", |
|
|
next:NULL, |
|
|
}; |
|
|
|
|
275 |
struct audio_driver * |
struct audio_driver * |
276 |
sun_register(char *options) |
sun_register(char *options) |
277 |
{ |
{ |
278 |
|
static struct audio_driver sun_driver; |
279 |
|
|
280 |
|
sun_driver.wave_out_write = rdpsnd_queue_write; |
281 |
|
sun_driver.wave_out_open = sun_open; |
282 |
|
sun_driver.wave_out_close = sun_close; |
283 |
|
sun_driver.wave_out_format_supported = sun_format_supported; |
284 |
|
sun_driver.wave_out_set_format = sun_set_format; |
285 |
|
sun_driver.wave_out_volume = sun_volume; |
286 |
|
sun_driver.wave_out_play = sun_play; |
287 |
|
sun_driver.name = xstrdup("sun"); |
288 |
|
sun_driver.description = |
289 |
|
xstrdup("SUN/BSD output driver, default device: " DEFAULTDEVICE " or $AUDIODEV"); |
290 |
|
sun_driver.next = NULL; |
291 |
|
|
292 |
if (options) |
if (options) |
293 |
{ |
{ |
294 |
dsp_dev = xstrdup(options); |
dsp_dev = xstrdup(options); |