Engine → Audio → audio_engine.h
audio_engine_stats
Syntax
struct audio_engine_stats
Variables
| Access | Name | Type | Default | Description |
| public | activeVoices | u32 | 0 | Number of currently active voices in the mixer snapshot. |
| public | commandsSent | u64 | 0 | Commands sent to the mixer. |
| public | commandsSpilled | u64 | 0 | Commands buffered outside the command ring when it was full. |
| public | deviceRestarts | u32 | 0 | Successful device restarts during recovery. |
| public | deviceState | device_state | device_state::STOPPED | Mirrored device state used for diagnostics, including LOST during recovery. |
| public | eventsDropped | u64 | 0 | Mixer events dropped when the event ring overflowed. |
| public | eventsReceived | u64 | 0 | Mixer events received on the main thread. |
| public | fellBackToNull | bool | false | Whether backend recovery switched playback to the null backend. |
| public | framesRendered | u64 | 0 | Total sample frames rendered by the mixer. |
| public | loops | u32 | 0 | Loop completions recorded by the mixer. |
| public | outputFormat | audio_format | {} | The mix output format negotiated at construction. |
| public | peakVoices | u32 | 0 | Highest number of active voices observed. |
| public | renderCalls | u64 | 0 | Number of mixer render calls. |
| public | streamingVoices | u32 | 0 | Streaming slots currently tracked by the engine. |
| public | underruns | u32 | 0 | Streaming underruns observed during rendering. |
| public | voicesDropped | u32 | 0 | Playback requests dropped when a voice could not be admitted. |