1 #include "sound-ioctl.h"
6 int soundout_open(struct soundout
*so
, const struct aformat
*af
)
8 so
->fd
= open("/dev/dsp", O_WRONLY
);
13 if (sound_set_format(so
->fd
, 16)){
17 if (sound_set_srate(so
->fd
, af
->srate
)){
21 if (sound_set_channels(so
->fd
, af
->channels
)){
28 int soundout_write(struct soundout
*so
, const void *buf
, size_t len
)
30 write(so
->fd
, buf
, len
);