287 |
} |
} |
288 |
} |
} |
289 |
|
|
|
static struct audio_driver sgi_driver = { |
|
|
.name = "sgi", |
|
|
.description = "SGI output driver", |
|
|
|
|
|
.add_fds = sgi_add_fds, |
|
|
.check_fds = sgi_check_fds, |
|
|
|
|
|
.wave_out_open = sgi_open, |
|
|
.wave_out_close = sgi_close, |
|
|
.wave_out_format_supported = sgi_format_supported, |
|
|
.wave_out_set_format = sgi_set_format, |
|
|
.wave_out_volume = sgi_volume, |
|
|
|
|
|
.need_byteswap_on_be = 1, |
|
|
.need_resampling = 0, |
|
|
}; |
|
|
|
|
290 |
struct audio_driver * |
struct audio_driver * |
291 |
sgi_register(char *options) |
sgi_register(char *options) |
292 |
{ |
{ |
293 |
|
static struct audio_driver sgi_driver; |
294 |
|
|
295 |
|
sgi_driver.name = xstrdup("sgi"); |
296 |
|
sgi_driver.description = xstrdup("SGI output driver"); |
297 |
|
|
298 |
|
sgi_driver.add_fds = sgi_add_fds; |
299 |
|
sgi_driver.check_fds = sgi_check_fds; |
300 |
|
|
301 |
|
sgi_driver.wave_out_open = sgi_open; |
302 |
|
sgi_driver.wave_out_close = sgi_close; |
303 |
|
sgi_driver.wave_out_format_supported = sgi_format_supported; |
304 |
|
sgi_driver.wave_out_set_format = sgi_set_format; |
305 |
|
sgi_driver.wave_out_volume = sgi_volume; |
306 |
|
|
307 |
|
sgi_driver.need_byteswap_on_be = 1; |
308 |
|
sgi_driver.need_resampling = 0; |
309 |
|
|
310 |
if (options) |
if (options) |
311 |
{ |
{ |
312 |
sgi_output_device = xstrdup(options); |
sgi_output_device = xstrdup(options); |