winealsa: Call snd_pcm_prepare twice to have PulseAudio reset correctly.

Joerg-Cyril.Hoehle at Joerg-Cyril.Hoehle at
Fri Dec 23 08:49:21 CST 2011

See bug #28723, comment #108

Restarting after an underrun, PulseAudio's avail & delay values may be larger than buffer size, as if they had not been reset.  I found that snd_pcm_prepare + drop + prepare helps it return to a reasonable state.

That doesn't solve all bugs with PA.  At other times, only killing and restarting PA helps.

This year's last patch, Merry Xmas,
	Jörg Höhle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winealsa-Call-snd_pcm_prepare-twice-to-have-PulseAu.patch
Type: application/octet-stream
Size: 1406 bytes
Desc: 0001-winealsa-Call-snd_pcm_prepare-twice-to-have-PulseAu.patch
URL: <>

More information about the wine-patches mailing list