Some games happen to have wonderful audio (and music), like Wolfenstein: The New Order. Some games happen not to be available natively for Linux, like… err… also Wolfenstein: The New Order. So we play them with WINE, and sometimes there are slight audio issues.
But have no fear: If you get audio crackling in such games (especially if your audio device is not running at 44.1 KHz), the following environment variable might fix it for you like it did for me:
You can either start WINE in a terminal with this env var prepended:
PULSE_LATENCY_MSEC=60 wine MyCoolGame.exe
Or you can export it in your ~/.profile file if you want it to be set for all your applications (don’t forget to completely log out and back in, since .profile is read only once per session):
Modern frontends like Lutris (and I think Bottles and Heroic?) also include a setting for this option.
Does this work for you? It works for me. I can’t remember where I found it first, but it’s a hint that’s been passed along, so pass it along I shall.
May the Flying Spaghetti Monster extend its noodly appendage to guide the hands of Lennart Poettering so that such issues become a thing of the past (if indeed Pulseaudio is to blame, but we always blame Pulseaudio, so we shall blame it one more time).
Now to enjoy the screams of expiring Nazi cyborgs in ultimate smoothness.