Expand description
Audio engine — RCU-based real-time audio processor.
The engine owns the audio graph and processes it in the audio callback. Graph mutations happen via clone-modify-swap (Read-Copy-Update) using arc-swap. The audio thread never blocks, never allocates, never locks.
Structs§
- Audio
Engine - The main audio engine. Owns the graph via ArcSwap for lock-free access.
- Engine
Config - Configuration for the audio engine.
- Graph
Builder - Builder for constructing audio graphs on the main thread.
- Graph
Snapshot - An immutable snapshot of the audio graph, shared between threads via Arc. The audio thread reads this; the main thread clones, modifies, and swaps.
Functions§
- swap_
graph - Swap a new graph into the engine atomically. Call from main thread only.