[alsa-devel] [PATCH - JACK 1/1] jack: Report Xruns to user application
Takashi Iwai
tiwai at suse.de
Fri Mar 16 15:41:21 CET 2018
On Fri, 16 Mar 2018 15:23:32 +0100,
<twischer at de.adit-jv.com> wrote:
>
> From: Timo Wischer <twischer at de.adit-jv.com>
>
> Only increasing the hw_ptr is not sufficient
> because it will not be evaluated by the ALSA library
> to detect an Xrun.
>
> In addition there is a raise where an Xrun detected by the JACK thread
> could not be detected in the ALSA thread.
> - In playback use case
> - The hw_ptr will be increased by the JACK thread
> (hw_ptr > appl_ptr => Xrun)
> - But the ALSA thread increases the appl_ptr before evaluating the
> hw_ptr
> - Therefore the hw_ptr < appl_ptr again
> - ALSA will not detect the Xrun which was already detected by the
> JACK thread
>
> Therefore an additional variable is required to report an Xrun from the
> JACK thread to ALSA.
>
> Signed-off-by: Timo Wischer <twischer at de.adit-jv.com>
Thanks, I applied it now.
But, at the next time you send a patchset, please don't continue from
the old thread. It's pretty confusing.
Takashi
More information about the Alsa-devel
mailing list