http://bugs.winehq.org/show_bug.cgi?id=13204
--- Comment #3 from Rafał Mużyło galtgendo@o2.pl 2008-05-17 05:13:35 --- (In reply to comment #2)
That's the way DirectSound works - it's broken by design. But that is what lots of applications depend on. The bug you point to is broken for a different reason. And what you proposing doesn't work for Wine. Looks like pulseaudio folks have to really fix their stuff.
Could you please elaborate on "what you proposing doesn't work for Wine" ? It does seem to work for more, no obvious crackling and the sound is there, as opposed to complete silence and Wine stuck in 'waiting to finish playing'. Did you actually test my patch or simply looked at it and deemed it wrong ? Also both pulseaudio AND alsa developers claim that using snd_pcm_delay, the way you use it, is definitely incorrect. And at least alsa team definitely knows this stuff.