Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 1.3 KB

AudioLatency.md

File metadata and controls

25 lines (17 loc) · 1.3 KB

Audio Latency Measurement

Audio output latency as measured by WALT is the time that passes from the moment an application decides to output a tone until it can be detected via the headphone jack. Microphone latency is defined similarly.

Audio signal for measuring microphone latency is generated as a square wave using the Teensy tone() function (currently at 5 kHz). The signal is attenuated by a simple circuit similar to the ChromeOS/Android audio loopback dongle.

Audio output signal from the phone is detected when audio line voltage crosses a predefined threshold (currently about 65 mV).

Low latency audio IO on Android can be achieved via JNI C/C++ code. Documentation and sample code can be found on the High Performance Audio website

Superpowered Inc. maintains an open source app for measuring round trip audio latency - Superpowered Latency App.

Published round trip measurements