1 /* Easier writing these bits in C rather
2 than defining the ioctls in D */
6 #include "linux/soundcard.h"
8 int sound_set_format(int fd
, int format
)
12 if (ioctl(fd
, SNDCTL_DSP_SETFMT
, &tmp
) == -1
21 int sound_set_srate(int fd
, int srate
)
25 if (ioctl(fd
, SNDCTL_DSP_SPEED
, &tmp
) == -1
34 int sound_set_channels(int fd
, int channels
)
38 if (ioctl(fd
, SNDCTL_DSP_CHANNELS
, &tmp
) == -1