Skip to content

How do you measure audio output latency? #1236

Answered by dturner
dturner asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can use AudioStream::calculateLatencyMillis

Note that sometimes an audio device will have digital signal processing after the audio frame has been rendered. It's not unusual to find this on the built-in speaker path where signal processing can be used to improve the resulting sound quality (e.g. make music sound less tinny on those tiny little speakers).

For AAudio take a look at this answer on stackoverflow.

Replies: 2 comments

Comment options

dturner
Mar 25, 2021
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by philburk
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants