Struct Graph Control
pub struct GraphControl<S: GraphSample = f32> { /* private fields */ }Expand description
Unique control endpoint. Prepare/offer graphs and reclaim/drop retired graphs outside audio callbacks. Pending and retired queues each have 1..4 slots.
Implementations§
§impl<S: GraphSample> GraphControl<S>
impl<S: GraphSample> GraphControl<S>
pub fn offer(&mut self, graph: Box<Graph<S>>) -> Result<(), GraphOfferError<S>>
pub fn offer(&mut self, graph: Box<Graph<S>>) -> Result<(), GraphOfferError<S>>
Accept an already-prepared, nonfaulted graph with exact initial config and latency. No implicit reprepare, history migration, rate/layout conversion or host latency change. A rejected graph remains owned by the returned error.
pub fn take_retired(&mut self) -> Option<Box<Graph<S>>>
pub fn take_retired(&mut self) -> Option<Box<Graph<S>>>
Transfers one retired graph to the control owner for reuse or destruction.