http://bugs.winehq.org/show_bug.cgi?id=28723
Alexey Loukianov mooroon2@mail.ru changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #37346|0 |1 is obsolete| |
--- Comment #39 from Alexey Loukianov mooroon2@mail.ru 2011-11-10 21:01:36 CST --- Created attachment 37437 --> http://bugs.winehq.org/attachment.cgi?id=37437 Proposed patchset, try #2
Here is patchset that includes my changes to GetCurrentPadding and alsa_write_data, requesting big-enough ALSA buffer size (I changed it to be at least 3x of mmdev_period size, or mmdev_buffer size in case it's bigger), and commented-out request to set ALSA period size. With this pathset applied I've got almost xrun-free behavior playing Rage with XA2=>mmdevapi sound render patch active. I still got some xruns, either caused by the game not sending audio data in time (during level loads, sound subsystem (re)initializations, e.t.c.), or my workstation not being able to handle load in time (for example if it is spending cycles in kernel space swaping out memory pages to disk, e.t.c.).