On Thu, 14 Feb 2002, Jaroslav Kysela wrote:

>> - ALSA is unable to detect xruns inside mmap_begin()->mmap_commit()
>>   code block
> I wonder why you say this. There is really very short time period in which
> the hardware pointer can cross the application pointer and PCM code won't
> react on this situation. There are no locks for the xrun detection between
> mmap_begin() and mmap_commit().

Quoting Paul: "i recall abramo saying that if the xrun happens within an
mmap_begin/commit pair, the driver can't detect it, or something like
that." 

Anyways, in this case the hw pointer does reach the sw pointer and we
won't notice it (snd_pcm_state() reports SND_PCM_STATE_RUNNING).

> If you want to debug the real problem, try to print hw_ptr and appl_ptr
> pointers when sound is garbled.

I'll try that next.

-- 
 http://www.eca.cx
 Audio software for Linux!


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

Reply via email to