Skip to main content

Crate sim_lib_audio_graph_live

Crate sim_lib_audio_graph_live 

Source
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§

AudioGraphLiveLib
Loadable library that registers the live audio graph surface with a runtime.
BoundedLiveQueue
Bounded queue used at live audio/control boundaries.
LanBufferedPreviewWindow
Reordering window that buffers LAN preview envelopes back into sequence order, emitting jitter/reorder/drop/late-packet diagnostics along the way.
LiveGraphConfig
Live runner configuration.
LiveGraphRunner
Preallocated live graph runner for host audio callbacks.
LivePlacedNode
Live graph runner bound to one local placement site.
LivePlacementSnapshot
Capacity snapshot for a placed live node.
LiveProcessReport
Process result for one live callback.
LiveSteadyStateSnapshot
Capacity snapshot used to verify steady-state processing does not grow.
LiveTransportClock
Stream-clock-backed transport source for live audio blocks.

Enums§

LiveAudioEvent
Owned audio event moved from the audio callback to the control thread.
LiveControlEvent
Owned control event moved from the control thread to the audio callback.
LivePlacementSite
Local placement sites supported by the live audio graph backbone.
LiveStreamLane
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 AudioGraphLiveLib into 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§

AudioToControlQueue
Bounded queue carrying audio-thread events back to the control thread.
ControlToAudioQueue
Bounded queue carrying control events into the audio callback.
LiveQueuePush
Result of pushing into a bounded live queue.