1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/linux/pw-loopback.md

29 lines
1.2 KiB
Markdown
Raw Normal View History

2021-09-05 17:44:42 +03:00
# pw-loopback
> Create loopback devices in PipeWire.
> More information: <https://docs.pipewire.org/page_man_pw-loopback_1.html>.
2021-09-05 17:44:42 +03:00
- Create a loopback device with the default loopback behavior:
`pw-loopback`
2021-11-23 04:48:50 +02:00
- Create a loopback device that automatically connects to the speakers:
2021-09-05 17:44:42 +03:00
2021-11-23 04:48:50 +02:00
`pw-loopback -m '{{[FL FR]}}' --capture-props='{{media.class=Audio/Sink}}'`
2021-09-05 17:44:42 +03:00
2021-11-23 04:48:50 +02:00
- Create a loopback device that automatically connects to the microphone:
2021-09-05 17:44:42 +03:00
2021-11-23 04:48:50 +02:00
`pw-loopback -m '{{[FL FR]}}' --playback-props='{{media.class=Audio/Source}}'`
2021-09-05 17:44:42 +03:00
2021-11-23 04:48:50 +02:00
- Create a dummy loopback device that doesn't automatically connect to anything:
2021-09-05 17:44:42 +03:00
2021-11-23 04:48:50 +02:00
`pw-loopback -m '{{[FL FR]}}' --capture-props='{{media.class=Audio/Sink}}' --playback-props='{{media.class=Audio/Source}}'`
- Create a loopback device that automatically connects to the speakers and swaps the left and right channels between the sink and source:
`pw-loopback --capture-props='{{media.class=Audio/Sink audio.position=[FL FR]}}' --playback-props='{{audio.position=[FR FL]}}'`
- Create a loopback device that automatically connects to the microphone and swaps the left and right channels between the sink and source:
`pw-loopback --capture-props='{{audio.position=[FR FL]}}' --playback-props='{{media.class=Audio/Source audio.position=[FL FR]}}'`