ValveSoftware / ValveSoftware/Proton
PulseAudio module-bluetooth-policy auto_switch=2 makes game lose audio
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 32.8k
- Forks
- 1.6k
- PR merge metrics
- PR metrics pending
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with ~/.config/pulse/default.pa using module-bluetooth-policy auto_switch=2, comparing it with auto_switch=1 in The Witcher 3 or Devil May Cry 5. Done means game audio and cutscenes continue working with auto_switch=2 without breaking the reported VoIP configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100