Skip to main content

Crate weirdnet_audio_route

Crate weirdnet_audio_route 

Source
Expand description

The audio routing model for Weirdnet: ports, a graph of connections, validation and records.

  • A PortInfo is an output or input of a node (an app instance, a device, a file or a controller channel), with a stable PortId that projects save.
  • A Graph holds ports and Connections from an output to an input. Fan-out and fan-in are allowed; Graph::connect refuses unknown ports, wrong directions, format or kind mismatches, cycles, duplicates, and anything a Gate denies (for example the audio owner’s consent).
  • Graph::order gives a deterministic processing order, Graph::latency_at the latency that reaches an input, and Graph::to_records / Graph::from_records a 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§

ConnectOptions
Options for a new connection.
Connection
An output connected to an input.
ConnectionId
A connection’s id.
Graph
Ports and connections.
NodeId
A node: an app instance, a device, a file, or a controller channel.
PortFormat
The audio format of a port.
PortId
A port’s id, stable across restarts and saved in projects.
PortInfo
One port.
PortLatency
What a port adds to the path, with its quality and how it was found.

Enums§

Direction
Output or input.
LatencyQuality
How a latency figure was obtained.
PortKind
What a port carries.
Record
One saved item of a graph.
RouteError
Why a change was refused.

Traits§

Executor
Something that turns a graph into audio movement.
Gate
Asked before a connection is made, for example to check permissions and consent.