http://bugs.winehq.org/show_bug.cgi?id=27087
--- Comment #12 from Jörg Höhle hoehle@users.sourceforge.net 2011-05-31 16:21:08 CDT --- Created an attachment (id=34973) --> (http://bugs.winehq.org/attachment.cgi?id=34973) +wave,+alsa snippet of correctly playing short sound with Pulseaudio
In Ubuntu Intrepid, the bug does *not* show up: + when using plug:hw (which plays at 41000Hz) + when using plug:pulse (= "default") the bug occurs: - when using plug:dmix (which resamples to 48000Hz) - after killing Pulseaudio (=> using dmix)
A log with Pulseaudio is attached and shows the pcm_state transition from RUNNING to XRUN that's missing with dmix.
cat /proc/asound/card0/pcm0p/sub0/?w_params shows the card's actual sample rate.
Maarten's timer driven winealsa replacement is not affected (hmm, I have to check again that it actually emits the UIButtonPress.wav sound). http://repo.or.cz/w/wine/multimedia.git/shortlog Given that winealsa's new mmdevapi.c is based on a periodic timer too, I believe that we should sit out this issue until Andrew & Maarten's "winmm via mmdevapi" comes out.
Do you mean winealsa should use a smaller buffer ?
No. ALSA should start playing the little it has, then signal an underrun. It looks like underrun detection is not working. OTOH, Perhaps Wine should not expect ALSA to play less than one period?