Problems with OSS

Michael Still mikal at stillhq.com
Fri Mar 29 22:14:48 EST 2002


On Fri, 29 Mar 2002, Simon Burton wrote:

> you probably need all three of these:
>      ret=ioctl(dspfd[dev],SNDCTL_DSP_SETFMT,&format); assert(!ret);
>      ret=ioctl(dspfd[dev],SNDCTL_DSP_STEREO,&stereo); assert(!ret);
>      ret=ioctl(dspfd[dev],SNDCTL_DSP_SPEED,&srate); assert(!ret);
> with
>      int format=AFMT_S16_LE;
>
> and stereo=1
> and srate=44100

I had all of these, except the stereo which I have added. Even after I
change the FMT to AFMT_S16_LE, I still get the clicking effect... The
difference is there is a longish period of silence first.

Any other hints?

Mikal

-- 

Michael Still (mikal at stillhq.com)     UMT+11hrs





More information about the linux mailing list