From: Brad M. <bmi...@xm...> - 2005-05-11 07:52:37
|
hi hope this doesn't appear as a dup fyi, I think the ioctl below should fail (or be fixed in the kernel, or we should switch to alsa kernel driver) big-endian audio comes out as static but little-endian audio works. int format=AFMT_S16_BE; if((audio_fd=open("/dev/dsp",O_WRONLY,0))==-1) { perror("\nFile open error\n"); exit(1); } if(ioctl(audio_fd,SNDCTL_DSP_SETFMT,&format)==-1) { perror("\nioctl no. 1\n"); exit(1); } once i realized this, i managed to get stereo audio reception basically working on my gumstix. it still needs performance tweaks--there are pauses in the audio and the cpu gets warm, but at least it seems like everything is there for stereo reception. brad |