pub struct Graph {
pub session: u32,
pub revision: u32,
pub first_frame: u64,
pub nodes: Vec<Node>,
pub program: Vec<u8>,
pub outputs: Vec<u8>,
}Expand description
Coherent graph description returned by a running endpoint.
Object IDs and generations are meaningful within an engine session; aliases
are snapshot labels. A reconnect requires a new snapshot. Internal DSP inside
a native process is opaque. connections describes signal routing; MIDI
bindings are reported on the nodes, and arbitrary message cords are not yet
represented by this protocol version.
Fields§
§session: u32Target connection epoch, not a globally unique or persistent boot ID.
revision: u32Applied topology revision within this engine session.
first_frame: u64First frame of the accepted audio block that introduced this revision.
nodes: Vec<Node>Native process descriptions.
program: Vec<u8>Exact active signal program, including its bytecode version.
outputs: Vec<u8>Active signal buses bound to physical outputs, in output order.
Implementations§
Source§impl Graph
impl Graph
Sourcepub fn node(&self, alias: &str) -> Option<&Node>
pub fn node(&self, alias: &str) -> Option<&Node>
Find a node by its exact, case-sensitive alias.
Sourcepub fn connections(&self) -> Result<Vec<Connection>>
pub fn connections(&self) -> Result<Vec<Connection>>
Reconstruct signal connections from the program and node port layouts.
Message ports retain their local indices even though bytecode signal
operands omit them. Built-in gain/mix operations have @gainN/@mixN
labels; N is their instruction ordinal, independent of native IDs.
§Errors
Rejects unknown versions, duplicate IDs/aliases/calls, missing nodes, invalid port layouts, forward bus references and invalid output bindings.