LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pw-loopback

Create virtual loopback audio devices

TLDR

Create a loopback device with default behavior
$ pw-loopback
copy
Create a loopback device that automatically connects to the speakers
$ pw-loopback -m '[FL FR]' -i 'media.class=Audio/Sink'
copy
Create a loopback device that automatically connects to the microphone
$ pw-loopback -m '[FL FR]' -o 'media.class=Audio/Source'
copy
Create a dummy loopback device that doesn't automatically connect
$ pw-loopback -m '[FL FR]' -i 'media.class=Audio/Sink' -o 'media.class=Audio/Source'
copy
Create a loopback that swaps left and right channels to speakers
$ pw-loopback -i 'media.class=Audio/Sink audio.position=[FL FR]' -o 'audio.position=[FR FL]'
copy

SYNOPSIS

pw-loopback [options]

DESCRIPTION

pw-loopback creates virtual loopback audio devices in PipeWire. Loopback devices capture audio from one source and play it back to another destination, enabling audio routing between applications or devices.The tool can create sink devices (for capturing audio output), source devices (for providing audio input), or combined loopback configurations for audio monitoring and routing.

PARAMETERS

-m, --channel-map map

Set the channel map for the loopback
-i, --capture-props props
Set properties for the capture side (sink)
-o, --playback-props props
Set properties for the playback side (source)
-h, --help
Display help message

INSTALL

sudo apt install pipewire-bin
copy
sudo apk add pipewire-tools
copy
sudo zypper install pipewire-tools
copy

CAVEATS

Channel mapping and media class properties must be specified correctly for proper automatic connection behavior. Incorrect configuration may result in audio routing issues or silent devices.

HISTORY

Part of PipeWire, the modern multimedia framework for Linux. Provides flexible audio routing capabilities similar to PulseAudio's module-loopback but with PipeWire's graph-based architecture.

SEE ALSO

pipewire(1), pw-cli(1), pw-link(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid