protonscr

PulseAudio module-bluetooth-policy auto_switch=2 makes game lose audio

protonopen
ValveSoftware/Proton#3942 · opened 2020-06-06 by ghost · updated 2020-06-06 · 0 comments · github
?ghost 2020-06-06 github

Proton Version: SteamPlay 5.0-8
Titles: Witcher 3, Devil May Cry 5

I have configured PulseAudio to auto-switch my headphones between A2DP/HFP/HSP using the following lines in ~/.config/pulse/default.pa:

# Automatically switch between A2DP and HSP
.nofail
unload-module module-bluetooth-policy
.fail
load-module module-bluetooth-policy auto_switch=2

Please refer to PulseAudio docs for more details on this configuration.

The configuration mentioned below causes audio loss and skipped cutscenes in the games mentioned above. Changing auto_switch=2 to auto_switch=1 fixes the issue, but it messes up my configuration for other VoIP apps.

Probable cause: Proton is creating a recording stream with media.role unset, which seems weird as the issue starts as soon as a game launches. The docs seem to indicate that this can happen if an application only supports ALSA, but in this case there should not even be a recording stream.

Nothing extracted yet.