Skip to main content

Module audio_latency_measurement_service

Module audio_latency_measurement_service 

Source
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:

KindFunctionsWhat 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§

AudioLatencyMeasurementService
Stateless facade that groups all latency measurement operations.