winealsa: Avoid underrun by adding a lead-in when starting with few samples.

Joerg-Cyril.Hoehle at Joerg-Cyril.Hoehle at
Fri Jan 27 07:09:29 CST 2012


for reference, see #29299.

The lead-in does not suffice to prevent underruns.  More precisely,
invoking the callbacks timely is the one essential requirement to
prevent underruns.  The lead-in merely ensures that ALSA has something
to do even when GetCurrentPadding remains 0 for one period.

The lead-in may solve half the bugs about apps hanging when writing
few samples.  The other half depends on the lead-out, i.e. both
GetCurrentPadding and GetPosition reaching the sum of Released frames.

	Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winealsa-Avoid-underrun-by-adding-a-lead-in-when-st.patch
Type: application/octet-stream
Size: 6569 bytes
Desc: 0001-winealsa-Avoid-underrun-by-adding-a-lead-in-when-st.patch
URL: <>

More information about the wine-patches mailing list