Paul Davis wrote:
> 
> i just wanted to note that xrun reporting via snd_pcm_avail_update()
> doesn't actually work.
> 
> when i run with small period sizes ((64-1024 frames) and no SCHED_FIFO
> and cause my audio thread to be sluggish, i get audible problems with
> the sound but no xruns are ever reported.
> 
> i think this is a structural design problem, but i don't have time to
> think about it right now. just wanted to see if this stimulates anyone
> else to come up with a good idea.

If the xrun happens between the snd_pcm_avail_update call and
snd_pcm_mmap_commit you will not note it.

May be that the reason of what you're seeing?

AFAICS this is not a problem solvable with a definitive solution, but
the fail window may be restricted (although I'm not sure it can be done
without some loss of efficiency).

-- 
Abramo Bagnara                       mailto:[EMAIL PROTECTED]

Opera Unica                          Phone: +39.546.656023
Via Emilia Interna, 140
48014 Castel Bolognese (RA) - Italy

ALSA project               http://www.alsa-project.org
It sounds good!

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

Reply via email to