E2E Audio Loopback Latency Analyzer
v9
Round-trip latency & glitch detector for TRRS / USB-C loopback dongles
Export JSON
Clear Session
Download Capture
Run Latency Test
Stop
Check Input
Idle — Ready
Loopback
Loopback dongle
Self-test (no hardware)
Input (dongle mic)
Default Hardware Input
Output
Default System Output
Number of Bursts
1 burst
5 bursts
10 bursts
20 bursts
Max Expected RTL
300 ms
500 ms
1000 ms
2000 ms (Bluetooth)
AudioContext latencyHint
interactive
balanced
playback
Runs
1 run
10 runs
20 runs
50 runs
Label
Self-test only: inject a 128-sample dropout in burst #2
READY
Connect the loopback dongle (or pick "Self-test") and click Run Latency Test.
One AudioWorklet both emits and records, so Tx and Rx share the same frame clock.
Sub-sample peak interpolation; ≈0.03-sample error in simulation (real-world accuracy is bounded by the device).
Round-Trip Latency (median)
—
ms
Awaiting measurement...
Trial Repeatability (Jitter)
—
ms
Target: ≤ ±0.5 ms StdDev
Correlation Confidence (PSR)
—
dB
Gate: ≥ 18 dB peak-to-sidelobe
Glitches & Dropouts
0
/ 0
Split peaks & intra-burst lag drift
Captured Waveform & Onset
Last analyzed capture window
Normalized Cross-Correlation R
xy
(τ)
Dashed line = level the peak must exceed for the PSR gate
Per-Burst Measurements
Sub-sample peak fit
Burst
Round-Trip Latency
Lag (Samples)
PSR
Input Peak
Status
No bursts recorded yet. Click "Run Latency Test" above.
Session
0 run(s) saved in this browser
Lag Distribution & Signal Levels
Distinct lags
n/a
Browser & Track Environment
getSettings()
AudioContext
Not initialized