|
@@ -66,6 +66,14 @@ def resolve_pedalboard_port(port, resolve_host_port):
|
|
|
return f"effect_{effect_index}:{resolved_symbol}" if resolved_symbol else None
|
|
return f"effect_{effect_index}:{resolved_symbol}" if resolved_symbol else None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+def is_rigforge_managed_boundary_port(port):
|
|
|
|
|
+ """Identify one of the four Rigforge PipeWire endpoints from either API path."""
|
|
|
|
|
+ graph_path = port.removeprefix("/graph/")
|
|
|
|
|
+ if "/" in graph_path:
|
|
|
|
|
+ return False
|
|
|
|
|
+ return graph_path.startswith("capture_") or graph_path.startswith("playback_")
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
def pedalboard_connection(
|
|
def pedalboard_connection(
|
|
|
port_from,
|
|
port_from,
|
|
|
port_to,
|
|
port_to,
|
|
@@ -84,6 +92,14 @@ def pedalboard_connection(
|
|
|
captures = {}
|
|
captures = {}
|
|
|
if "/" in destination_path and not destination_is_playback:
|
|
if "/" in destination_path and not destination_is_playback:
|
|
|
playbacks = {}
|
|
playbacks = {}
|
|
|
|
|
+ # mod-ui's HTTP route passes bare hardware symbols ("capture_3"), but the
|
|
|
|
|
+ # saved-board loader passes "/graph/capture_3". Preserve the latter marker:
|
|
|
|
|
+ # if the opposite endpoint cannot be resolved as a Rigforge plugin port,
|
|
|
|
|
+ # never guess a JACK/system alias for a stable PipeWire boundary.
|
|
|
|
|
+ boundary_endpoint = (
|
|
|
|
|
+ is_rigforge_managed_boundary_port(port_from)
|
|
|
|
|
+ or is_rigforge_managed_boundary_port(port_to)
|
|
|
|
|
+ )
|
|
|
pipewire_link = boundary_connection(
|
|
pipewire_link = boundary_connection(
|
|
|
port_from,
|
|
port_from,
|
|
|
port_to,
|
|
port_to,
|
|
@@ -93,6 +109,8 @@ def pedalboard_connection(
|
|
|
)
|
|
)
|
|
|
if pipewire_link is not None:
|
|
if pipewire_link is not None:
|
|
|
return "pipewire", pipewire_link
|
|
return "pipewire", pipewire_link
|
|
|
|
|
+ if boundary_endpoint:
|
|
|
|
|
+ return None
|
|
|
|
|
|
|
|
source = resolve_pedalboard_port(port_from, resolve_host_port)
|
|
source = resolve_pedalboard_port(port_from, resolve_host_port)
|
|
|
destination = resolve_pedalboard_port(port_to, resolve_host_port)
|
|
destination = resolve_pedalboard_port(port_to, resolve_host_port)
|