How do I read from the Mic in?
I get this error:
ioctl1: SNDCTL_DSP_SETFMT: Invalid argument

The interresting part of the code is:
if ((fd = open(ifname ? ifname : "/dev/audio", O_RDONLY)) < 0) {
perror("open");
exit (10);
}
sndparam = AFMT_S16_LE; /* we want 16 bits/sample signed */
/* little endian; works only on little endian systems! */
if (ioctl(fd, SNDCTL_DSP_SETFMT, &sndparam) == -1) {
perror("ioctl1: SNDCTL_DSP_SETFMT");
exit (10);
}
I have also tried sndparam = AFMT_U8;
With the same result.

Marius (Escort Cab + MarkII)