http://bugs.winehq.org/show_bug.cgi?id=28723
--- Comment #41 from Alexey Loukianov mooroon2@mail.ru 2011-11-10 21:57:04 CST --- Changing dsound's primary.c so it don't try to set period size to pre-defined value of 50000 seems to fix the problem - no more unexpected xruns, I've got only four at expected places after ~5 minutes of RAGE gameplay. It should be investigated more closely why does setting period to 50000 causes spontaneous xruns (and does it have anything in common with bogus GetPosition return value), but in any case it is "yet another known mmdevdrv bug to be fixed": specs require to ignore requested period size and use default instead if AudioClient is being opened in shared more, which is not the case with the current implementation.