2021-09-05 17:44:42 +03:00
|
|
|
# pw-loopback
|
|
|
|
|
2024-02-14 17:25:13 -03:00
|
|
|
> Create loopback devices in PipeWire.
|
2025-02-25 06:22:05 +02:00
|
|
|
> 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
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`pw-loopback {{[-m|--channel-map]}} '{{[FL FR]}}' {{[-i|--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
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`pw-loopback {{[-m|--channel-map]}} '{{[FL FR]}}' {{[-o|--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
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`pw-loopback {{[-m|--channel-map]}} '{{[FL FR]}}' {{[-i|--capture-props]}} '{{media.class=Audio/Sink}}' {{[-o|--playback-props]}} '{{media.class=Audio/Source}}'`
|
2021-11-23 04:48:50 +02:00
|
|
|
|
|
|
|
- Create a loopback device that automatically connects to the speakers and swaps the left and right channels between the sink and source:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`pw-loopback {{[-i|--capture-props]}} '{{media.class=Audio/Sink audio.position=[FL FR]}}' {{[-o|--playback-props]}} '{{audio.position=[FR FL]}}'`
|
2021-11-23 04:48:50 +02:00
|
|
|
|
|
|
|
- Create a loopback device that automatically connects to the microphone and swaps the left and right channels between the sink and source:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`pw-loopback {{[-i|--capture-props]}} '{{audio.position=[FR FL]}}' {{[-o|--playback-props]}} '{{media.class=Audio/Source audio.position=[FL FR]}}'`
|