|
|
@@ -197,15 +197,31 @@ def reconcile_once(state, runner=subprocess.run):
|
|
|
for report in missing_links:
|
|
|
source = report["from"]
|
|
|
destination = report["to"]
|
|
|
- if source not in outputs or destination not in inputs:
|
|
|
- actions.append(
|
|
|
- {
|
|
|
- "kind": "unavailable-port",
|
|
|
- "from": source,
|
|
|
- "to": destination,
|
|
|
- "result": "not-linked",
|
|
|
- }
|
|
|
- )
|
|
|
+ unavailable = []
|
|
|
+ if source not in outputs:
|
|
|
+ unavailable.append({"port": source, "direction": "output"})
|
|
|
+ if destination not in inputs:
|
|
|
+ unavailable.append({"port": destination, "direction": "input"})
|
|
|
+ if unavailable:
|
|
|
+ action = {
|
|
|
+ "kind": "unavailable-port",
|
|
|
+ "from": source,
|
|
|
+ "to": destination,
|
|
|
+ "missing_ports": unavailable,
|
|
|
+ "result": "not-linked",
|
|
|
+ "reason": (
|
|
|
+ "required PipeWire port(s) are not present in the current graph"
|
|
|
+ ),
|
|
|
+ }
|
|
|
+ if any(
|
|
|
+ item["port"].startswith(("effect_0:", "effect_1:"))
|
|
|
+ for item in unavailable
|
|
|
+ ):
|
|
|
+ action["hint"] = (
|
|
|
+ "mod-host must be running and load the NAM/IR plugins to expose "
|
|
|
+ "effect_0/effect_1 ports"
|
|
|
+ )
|
|
|
+ actions.append(action)
|
|
|
continue
|
|
|
try:
|
|
|
runner(
|