Sponsor:

Your company here, and a link to your site. Click to find out more.

libpipewire-module-loopback - Man Page

Loopback

Description

The loopback module passes the output of a capture stream unmodified to a playback stream. It can be used to construct a link between a source and sink but also to create new virtual sinks or sources or to remap channel between streams.

Because both ends of the loopback are built with streams, the session manager can manage the configuration and connection with the sinks and sources.

Module Name

libpipewire-module-loopback

Module Options

General Options

Options with well-known behavior. Most options can be added to the global configuration or the individual streams:

Stream only properties:

Example Configuration of a Virtual Sink

This Virtual sink routes stereo input to the rear channels of a 7.1 sink.

context.modules = [
{   name = libpipewire-module-loopback
    args = {
        node.description = "CM106 Stereo Pair 2"
        #target.delay.sec = 1.5
        capture.props = {
            node.name = "CM106_stereo_pair_2"
            media.class = "Audio/Sink"
            audio.position = [ FL FR ]
        }
        playback.props = {
            node.name = "playback.CM106_stereo_pair_2"
            audio.position = [ RL RR ]
            target.object = "alsa_output.usb-0d8c_USB_Sound_Device-00.analog-surround-71"
            node.dont-reconnect = true
            stream.dont-remix = true
            node.passive = true
        }
    }
}
]

Example Configuration of a Virtual Source

This Virtual source routes the front-left channel of a multi-channel input to a mono channel. This is useful for splitting up multi-channel inputs from USB audio interfaces that are not yet fully supported by alsa.

context.modules = [
{   name = libpipewire-module-loopback
    args = {
      node.description = "Scarlett Focusrite Line 1"
      capture.props = {
          audio.position = [ FL ]
          stream.dont-remix = true
          node.target = "alsa_input.usb-Focusrite_Scarlett_Solo_USB_Y7ZD17C24495BC-00.analog-stereo"
          node.passive = true
      }
      playback.props = {
          node.name = "SF_mono_in_1"
          media.class = "Audio/Source"
          audio.position = [ MONO ]
      }
    }
}
]

See Also

pw-loopback : a tool that loads the loopback module with given parameters.

Referenced By

libpipewire-modules(7).

1.0.5 PipeWire