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

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


Hi,

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.

Regards,
	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: <http://www.winehq.org/pipermail/wine-patches/attachments/20120127/3ff80d6b/attachment-0001.obj>


More information about the wine-patches mailing list