On Thu, 21 Feb 2002, Kai Vehmanen wrote: > On Thu, 21 Feb 2002, Jaroslav Kysela wrote: > > > Yes, this condition is faulty. It should be 'avail >= pcm->stop_threshold'. > > Btw; shouldn't that be 'avail > pcm->stop_threshold'...? For > instance if you want to prefill playback buffers > with silence before starting processing, you must be able > to write buffer_size==stop_threshold frames of data.
Yes, but in this case avail == 0, so the XRUN doesn't occur. But it's true, that the check for XRUN should be active only when PCM state is RUNNING. I'll correct it soon. Jaroslav ----- Jaroslav Kysela <[EMAIL PROTECTED]> Linux Kernel Sound Maintainer ALSA Project http://www.alsa-project.org SuSE Linux http://www.suse.com _______________________________________________ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel