316 |
} |
} |
317 |
} |
} |
318 |
|
|
319 |
static struct audio_driver oss_driver = { |
struct audio_driver * |
320 |
.name = "oss", |
oss_register(char *options) |
321 |
.description = "OSS output driver, default device: " DEFAULTDEVICE " or $AUDIODEV", |
{ |
322 |
|
oss_driver.name = xstrdup("oss"); |
323 |
|
oss_driver.description = |
324 |
|
xstrdup("OSS output driver, default device: " DEFAULTDEVICE " or $AUDIODEV"); |
325 |
|
|
326 |
.add_fds = oss_add_fds, |
oss_driver.add_fds = oss_add_fds; |
327 |
.check_fds = oss_check_fds, |
oss_driver.check_fds = oss_check_fds; |
328 |
|
|
329 |
.wave_out_open = oss_open, |
oss_driver.wave_out_open = oss_open; |
330 |
.wave_out_close = oss_close, |
oss_driver.wave_out_close = oss_close; |
331 |
.wave_out_format_supported = oss_format_supported, |
oss_driver.wave_out_format_supported = oss_format_supported; |
332 |
.wave_out_set_format = oss_set_format, |
oss_driver.wave_out_set_format = oss_set_format; |
333 |
.wave_out_volume = oss_volume, |
oss_driver.wave_out_volume = oss_volume; |
334 |
|
|
335 |
.need_byteswap_on_be = 0, |
oss_driver.need_byteswap_on_be = 0; |
336 |
.need_resampling = 0, |
oss_driver.need_resampling = 0; |
|
}; |
|
337 |
|
|
|
struct audio_driver * |
|
|
oss_register(char *options) |
|
|
{ |
|
338 |
if (options) |
if (options) |
339 |
{ |
{ |
340 |
dsp_dev = xstrdup(options); |
dsp_dev = xstrdup(options); |