https://bugs.winehq.org/show_bug.cgi?id=41007
--- Comment #1 from Franc[e]sco lolisamurai@tfwno.gf --- after some git disect'ing I found the patch that causes the problem:
4fbe6f3e7601f7b39f7f672ffe43553eee92ab1b is the first bad commit commit 4fbe6f3e7601f7b39f7f672ffe43553eee92ab1b Author: Andrew Eikum aeikum@codeweavers.com Date: Thu May 19 09:11:08 2016 -0500
dsound: Allow inactive devices to change the primary format.
Signed-off-by: Andrew Eikum aeikum@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
:040000 040000 e4511ac904218b34603ae73bd2cdd3d5eec0e89e 69022780bf259181e84fe6ab187ea37427525214 M dlls
reverting this fixes the sound glitching