winecoreaudio: GetNextPacketSize returns 0 when no data is available yet. (try 2)

Joerg-Cyril.Hoehle at Joerg-Cyril.Hoehle at
Mon Jan 16 03:47:31 CST 2012


With these 2 patches, most of my capture tests pass, except:

- period size 4096 -- actually varying, sometimes 4102 or 4103...
- GetBufferSize never reached if not multiple of period size;
  Here I think I'll make winecoreaudio round like native in
  exclusive mode, where duration becomes a multiple, to avoid
  this issue.  Requires knowing the actual period...
- Reset kills recording.

I ran my capture tests in a loop and output was stable over
hundreds of iterations.  Quite to the contrary, the render tests
currently cause a random deadlock that appears to involve EVENTCALLBACK
or exclusive mode, perhaps when a callback event is set.
That must be nailed down and eliminated for 1.4!

	Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winecoreaudio-GetNextPacketSize-returns-0-when-no-da.patch
Type: application/octet-stream
Size: 4393 bytes
Desc: 0001-winecoreaudio-GetNextPacketSize-returns-0-when-no-da.patch
URL: <>

More information about the wine-patches mailing list