Skip to content

adapter: set prefix for all monitor ports to "monitor"

Dark requested to merge DarkRTA/pipewire:master into master

This 3 line changes fixes a major problem I have which prevents me from reliably scripting connections with the JACK API.

Currently all monitor ports from clients appear to the jack API as :output_XX by default, and if an application takes both input and output, we end up with port names like this.

client:output_FL-34
client Monitor:output_FL
client:output_FR-3
client Monitor:output_FL
client:input_FL
client:input_FR

These names get even worse if you enable the config option to merge monitor ports.

# literally no way to tell which one of these are the monitor ports
client:output_FL-34
client:output_FL
client:output_FR-3
client:output_FL
client:input_FL
client:input_FR

After this change, we end up with more reasonable port names.

client:output_FL
client:monitor_FL
client:output_FR
client:monitor_FL
client:input_FL
client:input_FR
Edited by Dark

Merge request reports