Expand description
The audio routing model for Weirdnet: ports, a graph of connections, validation and records.
- A
PortInfois an output or input of a node (an app instance, a device, a file or a controller channel), with a stablePortIdthat projects save. - A
Graphholds ports andConnections from an output to an input. Fan-out and fan-in are allowed;Graph::connectrefuses unknown ports, wrong directions, format or kind mismatches, cycles, duplicates, and anything aGatedenies (for example the audio owner’s consent). Graph::ordergives a deterministic processing order,Graph::latency_atthe latency that reaches an input, andGraph::to_records/Graph::from_recordsa form to save and sync.- Executors turn a graph into audio movement (
Executor): the engine wires buses in one process, weirdnet-audio-stream carries remote edges. None of that lives here.
Structs§
- Connect
Options - Options for a new connection.
- Connection
- An output connected to an input.
- Connection
Id - A connection’s id.
- Graph
- Ports and connections.
- NodeId
- A node: an app instance, a device, a file, or a controller channel.
- Port
Format - The audio format of a port.
- PortId
- A port’s id, stable across restarts and saved in projects.
- Port
Info - One port.
- Port
Latency - What a port adds to the path, with its quality and how it was found.
Enums§
- Direction
- Output or input.
- Latency
Quality - How a latency figure was obtained.
- Port
Kind - What a port carries.
- Record
- One saved item of a graph.
- Route
Error - Why a change was refused.