Reducing stutter using Wine with Linux
More a note for myself, but when running games using Wine in Linux I found that the sound often stuttered badly. The question is posed here https://askubuntu.com/questions/392911/wine-sound-is-played-way-too-fast-and-crackles-horribly
Setting the environment variable PULSE_LATENCY_MSEC to 60 helped. export PULSE_LATENCY_MSEC=60
But I got much better results simply stopping pulseaudio.
systemctl --user stop pulseaudio.socket
systemctl --user stop pulseaudio.service
Then when finished with the wine program
systemctl --user start pulseaudio.socket
systemctl --user start pulseaudio.service
Its a bit of a pain, as the volume settings change a bit, but its the most effective solution I’ve employed for this problem that I’ve used so far.
One of the solutions offered in the link above is to kill pulseaudio with a ‘pulseaudio -k’, but this may not work as pulseaudio may be started again once wine starts. My solution disables the socket and service, which prevents pulseaudio being auto-started.