Buffered input-clock conversion for graph workers¶
PreparedClockedInput::new(raw_consumer, converted_producer, input_rate,
output_rate, options) prepares the existing sinc/FIFO-clock conversion on an
explicit worker, publishing converted f32 frames into a graph-rate queue. Queue
channels match (1..64); nominal integer rates are 8000..192000 with existing sinc
ratio/correction limits. Clock capacity matches the raw ring and target is strictly
inside it. Fixed frames are 1..65536; its output block adds at most 16 MiB to
converter/internal/source/destination queue memory.
pump() converts a fresh block only after its prior suffix has published. Full
or partial destination queues retain whole frames and do not consume capture or
advance sinc/controller state again. Target-occupancy priming and underflow/reprime
follow the existing clocked-duplex policy; fresh converted blocks may contain
intentional zeros. Progress reports converted/published/pending frames, and
statistics expose independent converter callbacks/clock occupancy/correction.
These are not hardware timestamps, a latency measurement or drift stability
proof. Capture/thread pacing, nominal rate selection, graph/event scheduling,
stream shutdown/join and endpoint retirement stay explicit.
The loaded public gain probe can insert nominal 96k-to-48k conversion before its queued native effect graph:
CARGO_BUILD_JOBS=2 cargo run --release -p ravet-device-probe --bin graph-input --locked -- \
--clocked 'target/clap/release/RAVET Gain.clap'
This synthetic offline profile checks settled stereo levels, retained suffixes, 1000 graph blocks and no heap actions; it opens no physical device/GUI/DAW. See decision 0125.