http://bugs.winehq.org/show_bug.cgi?id=28413
--- Comment #40 from Andrew Eikum aeikum@codeweavers.com 2013-01-15 14:56:26 CST --- Created attachment 43183 --> http://bugs.winehq.org/attachment.cgi?id=43183 winmm: Don't wait for device to be closed before allowing next sound to play
(In reply to comment #38)
That's nearly a full tenth of a second between invoking and returning from PlaySound.
Please investigate further whether it's PlaySound, winmm/wave or mmdevapi that causes such delays.
I looked closer and it's the close(fd) call in AudioClient_Release. I've seen it take over 0.125 seconds according to +timestamp.
So, here's a patch to signal the next sound to play before the waveOutClose() call occurs. It fixes the issue in my VM. What do you think Jörg?