pub fn test_gain_latency(
audio_service: State<'_, Mutex<AudioService>>,
) -> Result<(), String>Expand description
Measures the CPU execution impact of the GainProcessor and logs the result.
This command is intended for quick developer diagnostics — it prints the measurement
to the backend log but does not return a value to the frontend. Use
measure_all_dsp_cpu_timings when you need a structured result.
The measurement uses a block size of 2 048 samples, which is large enough to suppress timer-call overhead while completing in well under a second.
§Errors
Returns Err if the AudioService mutex cannot be locked.