I'm at the end of my wits maybe someone here can push me in the right direction.
I'm playing with a small program that is supposed to record audio from /dev/dsp, which it doesn't. I've been digging through the source (not to find programming errors, the code is third party and supposed to be fine, but to locate the problem). We're doing a select(fd_audio+1, &reads, NULL, NULL, &time), and it always returns 0, no matter how loud I curse at my microphone.
Tracing back we did FD_SET(fd_audio, &reads); and fd_audio = open(dev_audio, O_RDONLY, 0) and dev_audio is /dev/dsp.
/dev/dsp is crw-rw--w- and the user belongs to the group audio. cat /dev/dsp actually shows output for the lightest tap on the mic, which makes me think that select should return 1.
Any ideas?
_________________________
_______ Thomas