http://bugs.winehq.org/show_bug.cgi?id=29585
Andrew Eikum aeikum@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #38468|0 |1 is obsolete| |
--- Comment #10 from Andrew Eikum aeikum@codeweavers.com 2012-01-24 14:39:39 CST --- Created attachment 38536 --> http://bugs.winehq.org/attachment.cgi?id=38536 OSS improvements patchset
So here's a patchset which works for me. I used your suggestion of just caching the largest bi.bytes value as the max buffer size, and calculating the amount of data in the OSS buffer based off of that. It works in the handful of cases that I've tried, and passes your extended render tests (with WINETEST_DEBUG=2) just fine. Now it works basically the same as the ALSA driver (writing in period-sized chunks, no more than 4 periods in the OSS buffer, no writing in ReleaseBuffer, etc).