273 |
} |
} |
274 |
} |
} |
275 |
|
|
276 |
|
static struct audio_driver sgi_driver = { |
277 |
|
.name = "sgi", |
278 |
|
.description = "SGI output driver", |
279 |
|
|
280 |
|
.wave_out_open = sgi_open, |
281 |
|
.wave_out_close = sgi_close, |
282 |
|
.wave_out_format_supported = sgi_format_supported, |
283 |
|
.wave_out_set_format = sgi_set_format, |
284 |
|
.wave_out_volume = sgi_volume, |
285 |
|
.wave_out_play = sgi_play, |
286 |
|
|
287 |
|
.need_byteswap_on_be = 1, |
288 |
|
.need_resampling = 0, |
289 |
|
}; |
290 |
|
|
291 |
struct audio_driver * |
struct audio_driver * |
292 |
sgi_register(char *options) |
sgi_register(char *options) |
293 |
{ |
{ |
|
static struct audio_driver sgi_driver; |
|
|
|
|
|
sgi_driver.wave_out_open = sgi_open; |
|
|
sgi_driver.wave_out_close = sgi_close; |
|
|
sgi_driver.wave_out_format_supported = sgi_format_supported; |
|
|
sgi_driver.wave_out_set_format = sgi_set_format; |
|
|
sgi_driver.wave_out_volume = sgi_volume; |
|
|
sgi_driver.wave_out_play = sgi_play; |
|
|
sgi_driver.name = xstrdup("sgi"); |
|
|
sgi_driver.description = xstrdup("SGI output driver"); |
|
|
sgi_driver.need_byteswap_on_be = 1; |
|
|
sgi_driver.need_resampling = 0; |
|
|
sgi_driver.next = NULL; |
|
|
|
|
294 |
if (options) |
if (options) |
295 |
{ |
{ |
296 |
sgi_output_device = xstrdup(options); |
sgi_output_device = xstrdup(options); |