http://bugs.winehq.org/show_bug.cgi?id=16607
--- Comment #28 from Reece Dunn msclrhd@gmail.com 2008-12-28 09:45:44 --- This bug is valid. I found that commit dc224421416bd2616bfd52431388a6f9630bc860 ("dsound: Tune some parameters to make pulseaudio work.") broke dsound for pulseaudio, but only reverted (and cleaned up) the DSOUND_fraglen part of that patch.
Talking with Maarten on IRC, what I did was increased the overall latency. dc2244.. halved the period (DSOUND_fraglen) and doubled the length (the variables in dsound_main.c). My patch doubled the period, but did not halve the length.
The patch that Maarten has posted here completes the revert of dc2244.., which is why it is called a revert even though it does not revert my patch! I have tested Maarten's patch on a system with pulseaudio, and Ack the fix - it works with various dsound games.
Also, this fixes the remaining sound issues reported by Carl on bug 15559.