https://bugs.winehq.org/show_bug.cgi?id=28282
--- Comment #82 from Andrew Eikum aeikum@codeweavers.com --- (In reply to Nguyen Chinh Huu from comment #81)
Created attachment 66659 [details] Debug trace of osu!
The bug still happens in Wine 5.4 when running osu!. Setting `PULSE_LATENCY_MSEC=40` or setting audio driver to ALSA (`winetricks sound=alsa`) (my default driver is pulse) fixed the issue. The application is using WASAPI (Enabling the application's audio compatibility mode which uses DirectSound instead of WASAPI also made the crackling issue disappear, but results in high audio latency).
Have you tried the staging patchset linked in this bug? I'm hoping to upstream it soon, it would be helpful to know if it fixes the problem for you.
https://github.com/wine-staging/wine-staging/tree/master/patches/winepulse-P...