Fix crackling audio in some games in WINE

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:

PULSE_LATENCY_MSEC=60

You can either start WINE in a terminal with this env var prepended:

PULSE_LATENCY_MSEC=60 wine Steam.exe

or if you’re using PlayOnLinux:

PULSE_LATENCY_MSEC=60 playonlinux

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):

export PULSE_LATENCY_MSEC=60

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.

Leave a Reply

Your email address will not be published. Required fields are marked *