Skip to main content

Module engine

Module engine 

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

AudioEngine
The main audio engine. Owns the graph via ArcSwap for lock-free access.
EngineConfig
Configuration for the audio engine.
GraphBuilder
Builder for constructing audio graphs on the main thread.
GraphSnapshot
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.