Expand description
Tauri commands that expose latency measurement to the frontend.
Each command in this module is a thin adapter over
AudioLatencyMeasurementService. They are responsible for:
- Locking (or releasing) the
AudioServicemutex at the right time. - Logging results via
tracingso they appear in the backend console. - Returning serialisable DTOs across the IPC boundary.
§Command overview
| Command | Tauri invoke name | What it measures |
|---|---|---|
test_gain_latency | test_gain_latency | Gain processor CPU cost (logs only, no return value) |
measure_all_dsp_cpu_timings | measure_all_dsp_cpu_timings | CPU cost of all DSP processors |
measure_all_dsp_algorithmic_latency | measure_all_dsp_algorithmic_latency | Algorithmic (design) delay per processor |
measure_buffer_latency | measure_buffer_latency | I/O buffer delay from stream config |
measure_round_trip_latency | measure_round_trip_latency | True end-to-end hardware round-trip |
Functions§
- measure_
all_ dsp_ algorithmic_ latency - Returns the algorithmic (design-inherent) delay for every processor in the DSP chain.
- measure_
all_ dsp_ cpu_ timings - Measures the CPU execution cost of every processor in the active DSP chain.
- measure_
buffer_ latency - Estimates the I/O buffer latency from the current CPAL stream configuration.
- measure_
round_ trip_ latency - Measures true end-to-end round-trip latency using dedicated CPAL streams.
- test_
gain_ latency - Measures the CPU execution impact of the
GainProcessorand logs the result.