Problems with OSS
Jeremy
jepri at webone.com.au
Sat Mar 30 09:53:19 EST 2002
On 2002.03.29 22:14 Michael Still wrote:
> 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?
Michael,
Clicking used to indicate a badly-written mp3 decoder, or one
operating poorly. If you are sure that you are doing everything right,
check the sound you are using.
Another issue might be buffer under-run. Suddenly starting a wave form
half way through will cause some sound cards to blip.
How big are the chunks you are pushing at your sound card, and how
often to the clicks happen?
More information about the linux
mailing list