Expand description
AudioFlow — projects the ECS audio domain into a per-tick
AudioView consumed by SpatialMixingLane.
Replaces the previous design where the lane queried World directly
(and mutated AudioSource.state.cursor in place from the audio
callback thread). Per CLAD, lanes consume Views from the
LaneBus and write outputs into the
OutputDeck — they do not query the
World.
The matching audio_playback_writeback DataSystem
(crate::ecs::systems::audio_playback_writeback, Maintenance
phase) drains the writeback slot the lane wrote into and applies the
new playback states back to the AudioSource components.
Structs§
- Audio
Flow - Audio domain Flow — read-only projection of the audio domain.
- Audio
Playback Update - Update emitted by
SpatialMixingLanefor a single source — applied back to itsAudioSourcecomponent by theaudio_playback_writebackDataSystem. - Audio
Playback Writeback - Slot type written into
OutputDeckbySpatialMixingLane. Drained inMaintenanceby theaudio_playback_writebackDataSystem. - Audio
Source Snapshot - Per-source snapshot fed to
SpatialMixingLane::mix. - Audio
View - View published by
AudioFlowinto theLaneBus. Carries the listener pose and a snapshot of every activeAudioSource.