1 /* Easier writing these bits in C rather
2 than defining the ioctls in D */
5 #include "linux/soundcard.h"
7 int sound_set_format(int fd
, int format
)
11 if (ioctl(fd
, SNDCTL_DSP_SETFMT
, &tmp
) == -1
20 int sound_set_srate(int fd
, int srate
)
24 if (ioctl(fd
, SNDCTL_DSP_SPEED
, &tmp
) == -1
33 int sound_set_channels(int fd
, int channels
)
37 if (ioctl(fd
, SNDCTL_DSP_CHANNELS
, &tmp
) == -1