Expand description
Latency-oriented measurement helpers that sit on top of AudioService.
§What this module measures
There are three distinct kinds of latency in the signal chain, each exposed by a different family of functions:
| Kind | Functions | What it captures |
|---|---|---|
| CPU execution time | [measure_gain_latency], [measure_tone_stack_latency], [measure_all_dsp_timings] | How many µs each DSP processor adds per sample of CPU work |
| Algorithmic latency | [measure_all_dsp_algorithmic_latency] | Inherent sample-delay introduced by an effect’s design (lookahead, delay lines, etc.) |
| I/O buffer latency | [measure_buffer_latency] | Buffering delay imposed by the CPAL input and output stream frame sizes |
| Round-trip latency | [measure_round_trip_latency] | True end-to-end wall-clock delay measured by injecting an impulse and timing its echo |
Structs§
- Audio
Latency Measurement Service - Stateless facade that groups all latency measurement operations.