Products › lamco-dsi-tools › Interfaces › PipeWire audio graph

PipeWire monitor and audio graph: Sinks, sources and streams

The PipeWire audio graph: Sinks, sources, streams, links, defaults and a sink's monitor. How PipeWire monitor capture works, and how to check sound arrives.

PipeWire PipeWire sinks, sources, streams, monitors

The PipeWire audio graph is how sound moves on a current Linux desktop: Sinks that play, sources that record, the streams of programs linked to them, and a monitor on each sink that carries a copy of what it plays. Sound settings, recorders, screen recorders that take the desktop's sound and remote desktop servers that send it all work on this graph, and capturing from a PipeWire monitor is how a program hears what the desktop plays. lamco-dsi-tools (DSI: Desktop session interfaces) records the graph, listens on a sink's monitor, plays a marked sound into the sink, and pairs the two.

What it is

PipeWire runs a graph of nodes, ports and links. A node's media.class says what it is: Audio/Sink for something that plays, Audio/Source for something that records, Audio/Duplex for both, and stream classes for the programs that play into a sink or record from a source. Links connect the ports of two nodes. PipeWire itself only runs the graph; a session manager, usually WirePlumber, creates the nodes for the machine's devices, links new streams, and keeps the default sink and source by node name in a metadata object (default.audio.sink, default.audio.source).

A sink's monitor is the way to hear what the sink plays. A capture stream that asks to capture the sink (the stream property stream.capture.sink) is linked by the session manager to the sink's monitor ports and receives the samples the sink plays. Each buffer comes with a time report, struct pw_time, from pw_stream_get_time_n: The graph's time, the rate, a delay the stream reports for itself, and counts of queued data.

Two command-line tools read the graph from outside: pw-dump prints every object as JSON, and pw-profiler prints the timing of each graph cycle. The same graph carries screen casts as video streams, which is the subject of the PipeWire screen cast stream page.

Which desktops offered it

The matrix row for PipeWire sinks (playback):

DesktopState
GNOME Shell 48.7 (Debian 13)present
GNOME Shell 51.0 (Fedora 45)present
KDE Plasma, KWin 6.5.6 (NixOS)present
KDE Plasma, KWin 6.8.2 (KDE neon)present
Sway 1.9present
Hyprland 0.56.2present
COSMIC, cosmic-comp 1.0.0working
labwc 0.20.3 (Budgie session, CachyOS)present
Cinnamon Wayland session (Linux Mint)working

Each cell is one version of that desktop on one virtual machine, captured on 2026-11-27 or 2026-11-28 with dsisee observe and no permission dialog answered. A cell describes that virtual machine's graph and nothing of real sound hardware. present means the graph held a sink and nothing exercised it. The audio function took the same state as the sinks on every desktop, and the row for PipeWire sources (recording) reads absent on all nine. The README's run record lists the audio loop, playing a marker and hearing it on the sink's monitor, on GNOME Shell 48.7, KDE Plasma 6.8.2 and Sway 1.9: 3 of 3 markers heard on each. It also records that on KDE Plasma 6.5.6 pw-dump printed malformed output that was recovered, and that pw-profiler of PipeWire 1.0.5 has no -J option and is reported as not available.

The project's record of runs, reconciled on 2026-12-04, adds:

  • The full build for 64-bit ARM, on GNOME Shell 48.7 on an emulated aarch64 machine on 2026-12-04: dsisee audio stream --duration 3, where 124 buffers arrived through libpipewire.

How to check it with lamco-dsi-tools

dsisee audio observe                                               # sinks, sources, streams, links and defaults
dsisee pipewire diagnose                                           # every object of the graph, as pw-dump printed it
dsisee audio stream --duration 10 --expect 5 --out stream.json &   # listen on the default sink's monitor
dsido audio play --repeat 5 --out play.json                        # play five faint markers into it
dsitell audio play.json stream.json                                # pair each marker played with the one heard

dsisee audio observe plays nothing and records no sound. It prints the sinks, sources, the streams that play and record, the links, the default sink and source, each node's state and negotiated format, the profiler's xrun count, and the audio part of the health summary. dsisee audio stream connects a capture stream to a sink's monitor, the default sink unless --node names one, and records the format offered and settled on, each change of state, the link the session manager made, which says which sink it is, and every buffer with its arrival time and PipeWire's time report. The samples pass through the marker detector and are let go: No capture holds any sound. dsitell audio refuses two captures from different machines or boots, and says whether both streams were linked to one node.

audio stream and audio play need a build with the pipewire feature, which is the full tarball for the gnu targets. In a portable build they end as not available, naming the feature.

Driving it with dsido

dsido audio play makes a sound, which is why it's in dsido. It plays a marker made to be found exactly by correlation, a maximum length sequence of faint hiss at --level dB relative to full scale (default -40), --repeat times into the default sink or the one --node names. It records each buffer the graph asked for, when it was asked for and handed back, the frame each marker begins at, and the delay the stream reported for itself. Play and listen on the same node: A marker played into one sink isn't heard on another's monitor.

Findings

  • AUDIO-001: The PipeWire graph holds no audio sink.
  • AUDIO-002: A default audio device names a node that is not in the graph.
  • AUDIO-003: An audio stream of the instrument failed.
  • AUDIO-004: A stream on a sink's monitor delivered no buffer.
  • AUDIO-005: A marker that was expected was not heard on the sink's monitor.
  • PW-001: pw-dump could not read the PipeWire graph.
  • PW-002: The PipeWire profiler counted xruns.
  • PW-003: pw-dump printed malformed JSON, and part of it was skipped.

Related