Expand description
Preallocated live audio graph runner for host callback integration.
This crate connects the audio graph processor protocol to host callback queues. It provides bounded control/audio queues, stream-clock-backed transport snapshots, and a small allocation-free steady-state process path for mono and stereo graphs.
Re-exports§
pub use cookbook::live_config_demo;
Modules§
- cookbook
- Deterministic cookbook builders for live audio-graph recipes.
Structs§
- Audio
Graph Live Lib - Loadable library that registers the live audio graph surface with a runtime.
- Bounded
Live Queue - Bounded queue used at live audio/control boundaries.
- LanBuffered
Preview Window - Reordering window that buffers LAN preview envelopes back into sequence order, emitting jitter/reorder/drop/late-packet diagnostics along the way.
- Live
Graph Config - Live runner configuration.
- Live
Graph Runner - Preallocated live graph runner for host audio callbacks.
- Live
Placed Node - Live graph runner bound to one local placement site.
- Live
Placement Snapshot - Capacity snapshot for a placed live node.
- Live
Process Report - Process result for one live callback.
- Live
Steady State Snapshot - Capacity snapshot used to verify steady-state processing does not grow.
- Live
Transport Clock - Stream-clock-backed transport source for live audio blocks.
Enums§
- Live
Audio Event - Owned audio event moved from the audio callback to the control thread.
- Live
Control Event - Owned control event moved from the control thread to the audio callback.
- Live
Placement Site - Local placement sites supported by the live audio graph backbone.
- Live
Stream Lane - One logical stream lane carried between the live runner and the host.
Statics§
- RECIPES
- Cookbook recipes for this lib, embedded at build time.
Functions§
- buffered_
pcm_ preview_ profile - Returns the buffered PCM preview transport profile.
- install_
audio_ graph_ live_ lib - Installs
AudioGraphLiveLibinto the context once, idempotently. - lan_
buffered_ audio_ preview_ profile - Returns the LAN buffered audio preview transport profile.
- lan_
buffered_ preview_ drop_ diagnostic_ kind - Returns the diagnostic kind symbol for dropped preview packet ranges.
- lan_
buffered_ preview_ jitter_ diagnostic_ kind - Returns the diagnostic kind symbol for preview sequence jitter.
- lan_
buffered_ preview_ late_ packet_ diagnostic_ kind - Returns the diagnostic kind symbol for late preview packets.
- lan_
buffered_ preview_ reorder_ diagnostic_ kind - Returns the diagnostic kind symbol for out-of-order preview packets.
- lan_
render_ return_ profile - Returns the LAN render-return transport profile.
- live_
clock_ symbol - Returns the symbol identifying the live audio graph clock.
- realtime_
local_ audio_ profile - Returns the realtime local audio transport profile.
- refuse_
unbuffered_ audio_ callback_ tunnel - Refuses tunneling an unbuffered or realtime profile through the audio callback, directing callers to the LAN buffered audio preview profile.
- validate_
lan_ buffered_ preview_ envelope - Validates that an envelope carries PCM media on the LAN buffered audio preview transport profile.
- validate_
realtime_ local_ audio_ profile - Validates that a profile may enter the realtime local audio callback.
Type Aliases§
- Audio
ToControl Queue - Bounded queue carrying audio-thread events back to the control thread.
- Control
ToAudio Queue - Bounded queue carrying control events into the audio callback.
- Live
Queue Push - Result of pushing into a bounded live queue.