winealsa: Fix AudioCaptureClient Get/ReleaseBuffer protocol. (try 2)

Joerg-Cyril.Hoehle at Joerg-Cyril.Hoehle at
Mon Jan 16 03:35:21 CST 2012


You'll find my capture tests in testbot job #16332

The surprising news is that (in shared mode), GetBuffer
never returns more than a period worth of data.
GetCurrentPadding can return much larger values.

With that patch in place, winealsa produces almost the
same test results on my mmdevapi capture tests as a w7 machine
-- modulo the few todo_wine.

Try2 fixes the incorrect call to GetPosition.  Maybe it's not a
good idea to remove the call entirely, because GetPosition
has the benefit of logging all ALSA parameters -- but it not
called unconditionally.

I've ran my capture&render tests in a loop with dmix and
results were stable over hundreds of iterations.

	Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winealsa-Fix-AudioCaptureClient-Get-ReleaseBuffer-p.patch
Type: application/octet-stream
Size: 4634 bytes
Desc: 0001-winealsa-Fix-AudioCaptureClient-Get-ReleaseBuffer-p.patch
URL: <>

More information about the wine-patches mailing list