Live replacement in buffered graph workers¶
PreparedDynamicGraphOutput::new(engine, producer, config) and with_input
share fixed-worker scratch, event, queue, starvation and fault-latch semantics.
The engine must already be prepared at the exact config returned by
DynamicGraph::configuration(); no graph/node is reprepared. Retain its separate
control endpoint for prepared offers and main-thread retirement.
A pending output suffix repeats no processing or handoff. Only fresh rendering
attempts one candidate; progress.swap returns its outcome separately from
processing/publication, with None for pending calls and fixed workers. Retirement
full or candidate start rejection preserves old processing. Copied queued audio
keeps its old graph result; no crossfade, tail drain, state migration or rate/
layout/latency change is inferred. Graph/event/GUI generations remain caller policy.
A swap can precede a processing failure. session.last_swap() retains the last
graph-processing handoff outcome even on errors; it is historical through pending,
outer-rejected and fault-latched calls. Successful current calls use progress.swap.
Faults suppress faulty publication and require explicit reset before more rendering.
Worker finish/stop/join precedes into_graph on main, engine/retired graph drop and
separate native control reclaim. Each in-flight graph/native budget is additional
to shared worker scratch/queues.
The public offline two-instance gain probe replaces a graph while old audio is partially published, checks exact old/new samples and main retirement while the new graph continues:
CARGO_BUILD_JOBS=2 cargo run --release -p ravet-device-probe --bin graph-live --locked -- \
'target/clap/release/RAVET Gain.clap'
It opens no device/GUI/DAW and establishes no physical timing/deadline/recovery claim. See decision 0126.