I've got this pactl script to reverse the audio output on my headphones:
pactl load-module module-remap-sink \
sink_name=reverse-stereo \
master=0 \
channels=2 \
master_channel_map=front-right,front-left \
channel_map=front-left,front-right
pactl set-default-sink reverse-stereo
Whenever I try to play a game using proton with this script, the audio starts crackling to the point where you can't make out anything from the game.
This doesn't happen with any other applications (games or otherwise).
I'm using steam through flatpak, with proton version 8.0-2.
This only started happening after my distro (void linux) changed from pulseaudio-media-session to wireplumber.