Applications actively providing audio cannot handle output disappearing when using Pulse backend
System info:
pipewire: 1:0.3.30-2 (still happens on 0.3.32)
Operating System: Arch Linux
KDE Plasma Version: 5.22.2
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.12.13-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 3600 6-Core Processor
Memory: 31.4 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2
Description of Problem: Most(all?) applications using Pulse cannot handle an output disappearing using Pipewire's Pulse backend.
There is no issue with real PulseAudio backend.
Some of the apps include:
- Youtube on Chromium - it kicks back in after a short while however
- CS:GO - needs a restart
- Tauon Music Box - needs a restart
How Reproducible: 100%
Steps to Reproduce:
- Play a song in Tauon Music Box
- Open up pavucontrol Configuration tab, toggle the output Off and On
- TMB now can't play music at all, even when switching to a new song
Actual Results: Applications are without audio, but it seems the bug only occurs while audio is actively playing. Switching outputs while nothing is playing works as intended.
Expected Results: Applications restore audio when output comes back
Workaround: Mute/Stop playing the application, wait a few seconds, switch the outputs, then re-enable it again. That usually avoids having to restart things.