Skip to main content

Module audio_agent

Module audio_agent 

Source
Expand description

The Intelligent Subsystem Agent responsible for managing the audio system.

Per CLAD the agent owns no hardware state. The audio device is opened by the application during bootstrap; the resulting [AudioStream] handle and the shared [AudioMixBus] live in the runtime. Each frame the agent reads the per-tick AudioView from the LaneBus, builds a LaneContext containing the bus + the view + a slot to the OutputDeck, and dispatches its audio lanes (currently only [SpatialMixingLane]). Lanes mix into a staging buffer and push samples to the bus; the backend’s audio callback drains the bus on a dedicated real-time thread.

Structs§

AudioAgent
The ISA that orchestrates the audio subsystem.