http://bugs.winehq.org/show_bug.cgi?id=28982
--- Comment #6 from Andrew Eikum aeikum@codeweavers.com 2011-11-07 09:56:19 CST --- (In reply to comment #5)
Created attachment 37341 [details] Add extra handling for unbuffered MMIO handles
Ok, here is a patch that solves all the problems. It fixes crashing, stuttering sound effect, and background music.
Maybe it's just bad coding on the application's part, but yeah this works and I dint notice any bugs. It might break other applications thought? Needs more testing.
The patch looks plausible, and passes all of the existing MMIO tests for me. Could you try writing some tests in <dlls/winmm/tests/mmio.c> for the behavior changes that you're adding? I also noticed that there are some #ifdef-ed out blocks in that file with "remove once passes under Wine" comments; would you expect your patch to fix any of these?