Skip to content

Engine → Audio

null_backend.h

The headless backend: no device, no thread, no OS calls. Its update(dt) advances a virtual clock and calls the real mixer for round(dt * sampleRate) frames on the main thread (carrying the fractional remainder), so cursors, loops, ramps and group gains behave exactly as on hardware. The engine writes a snapshot of its voices, groups and listener into stats() every update, which is what headless tests assert on.

Structs

File Description
null_backend_stats Everything the null backend and the engine publish for tests and the profiler.
null_group_stats Snapshot of one group (effectivePaused is the group's own flag or any ancestor's).
null_voice_stats Snapshot of one mixer slot.

Classes

File Description
null_backend

Forward Declarations

audio_engine

class audio_engine;

detail::audio_engine_helpers

struct audio_engine_helpers;