46 |
static int snd_rate; |
static int snd_rate; |
47 |
static short samplewidth; |
static short samplewidth; |
48 |
static char *dsp_dev; |
static char *dsp_dev; |
|
static struct audio_driver oss_driver; |
|
49 |
static BOOL in_esddsp; |
static BOOL in_esddsp; |
50 |
|
|
51 |
|
/* This is a just a forward declaration */ |
52 |
|
static struct audio_driver oss_driver; |
53 |
|
|
54 |
static BOOL |
static BOOL |
55 |
detect_esddsp(void) |
detect_esddsp(void) |
56 |
{ |
{ |
298 |
return; |
return; |
299 |
} |
} |
300 |
|
|
301 |
|
static struct audio_driver oss_driver = { |
302 |
|
.name = "oss", |
303 |
|
.description = "OSS output driver, default device: " DEFAULTDEVICE " or $AUDIODEV", |
304 |
|
|
305 |
|
.wave_out_open = oss_open, |
306 |
|
.wave_out_close = oss_close, |
307 |
|
.wave_out_format_supported = oss_format_supported, |
308 |
|
.wave_out_set_format = oss_set_format, |
309 |
|
.wave_out_volume = oss_volume, |
310 |
|
.wave_out_play = oss_play, |
311 |
|
|
312 |
|
.need_byteswap_on_be = 0, |
313 |
|
.need_resampling = 0, |
314 |
|
}; |
315 |
|
|
316 |
struct audio_driver * |
struct audio_driver * |
317 |
oss_register(char *options) |
oss_register(char *options) |
318 |
{ |
{ |
|
oss_driver.wave_out_open = oss_open; |
|
|
oss_driver.wave_out_close = oss_close; |
|
|
oss_driver.wave_out_format_supported = oss_format_supported; |
|
|
oss_driver.wave_out_set_format = oss_set_format; |
|
|
oss_driver.wave_out_volume = oss_volume; |
|
|
oss_driver.wave_out_play = oss_play; |
|
|
oss_driver.name = xstrdup("oss"); |
|
|
oss_driver.description = |
|
|
xstrdup("OSS output driver, default device: " DEFAULTDEVICE " or $AUDIODEV"); |
|
|
oss_driver.need_byteswap_on_be = 0; |
|
|
oss_driver.need_resampling = 0; |
|
|
oss_driver.next = NULL; |
|
|
|
|
319 |
if (options) |
if (options) |
320 |
{ |
{ |
321 |
dsp_dev = xstrdup(options); |
dsp_dev = xstrdup(options); |