On Fri, 25 Jan 2002, Matthew Fredrickson wrote:

> On Fri, 25 Jan 2002, Jaroslav Kysela wrote:
> > > Now I'm at a point where it sounds really good for a few minutes, a
> > > couple of XRUNS every now and then, and then just about perfect for a
> > > while.  After it has done this, it gets to a point where I rapidly start
> > > getting more and more XRUNS, and eventually that's about the only thing it
> > > gets.  Boom.  No more audio.  Arrghhh! :-D
> >
> > It sound like a problems with bad restarting of a stream. Try to set
> > start_threshold to buffer_size (it's maximum value). In the case, the
> > stream is started when the whole ring buffer is filled. It causes a bit
> > worse latency but a good xrun protection.
>
> When I try setting the start_threshold to the buffer_size (and disabled
> the function that sets the stop threshold), I get an input/output error
> returned by snd_pcm_readi.
>
> What could be causing this?

I meant to set the start_threshold to buffer_size only for playback (start
when the ring buffer is completely full). The capture should have this
threshold set to 1 (start immediately when read operation occurs).

Note that I tried to explain this in the alsa-lib PCM reference available
online or via doxygen in alsa-lib.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
SuSE Linux    http://www.suse.com
ALSA Project  http://www.alsa-project.org


_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to