When I use Steam Link to play my game which is running in my ArchLinux PC, I find steam only catch microphone and ignore the sound output of PC. (Fixed on my ArchLinux PC at 2022-09-15)
Github Issue: [Remote Play] No sound when streaming #6606
But lucky, we can use pipewire to solve it.
Basically, we need create a new pipewire virtual device that to combines an real input and output into a new input.
There are two simply script to help you do it.
- enable_virtual_mic.sh
#!/usr/bin/bash
pactl load-module module-null-sink media.class=Audio/Sink sink_name=my-combined-sink channel_map=stereo
pactl load-module module-null-sink media.class=Audio/Source/Virtual sink_name=my-virtualmic channel_map=front-left,front-right
pw-link easyeffects_sink:monitor_FL my-combined-sink:playback_FL
pw-link easyeffects_sink:monitor_FR my-combined-sink:playback_FR
pw-link easyeffects_source:capture_FL my-combined-sink:playback_FL
pw-link easyeffects_source:capture_FR my-combined-sink:playback_FR
pw-link my-combined-sink:monitor_FL my-virtualmic:input_FL
pw-link my-combined-sink:monitor_FR my-virtualmic:input_FR
- disable_virtual_mic.sh
#!/usr/bin/bash
pactl unload-module module-null-sink
And then mute your microphone(if you not need) and switch microphone device to the new virtual device.
Enjoy 🙂
Pingback: Pipewire 多设备输出 - xzOS