http://bugs.winehq.org/show_bug.cgi?id=28413
--- Comment #36 from Andrew Eikum aeikum@codeweavers.com 2012-12-27 14:47:03 CST --- Thanks, David. I installed PC-BSD 9.1 into a VirtualBox VM and am able to reproduce this.
Looks like the problem is it takes a long time to cancel previously playing sounds when a new sound asks to be played:
17.594:0009:trace:winmm:MULTIMEDIA_PlaySound pszSound='0x153278' hmod=0x400000 fdwSound=00000005 ... 17.688:0009:err:winmm:MULTIMEDIA_PlaySound returning control
That's nearly a full tenth of a second between invoking and returning from PlaySound.
Jörg did work in this area recently. The code is still pretty messy, so there might be further improvements. For example, maybe we can avoid waiting for the other sounds to stop playing if SND_ASYNC is given.
(By the way, the "Invalid null command" is because PC-BSD uses csh as its shell by default. You can run "bash" first and then the debugging command to generate a log.)