google / google/oboe

Test MMAP Timing Model accuracy

Open
#430 1 comment 0 reactions 0 assignees View on GitHub
apps P1
Dominant language
C++
Stars
4.1k
Forks
639
Avg merge
2d 23h
Merged PRs (30d)
8

Description

First measure RT latency.
Then start with a stable loopback glitch test with N buffer.
Then slowly increase a sleep time inside the callback to see if you can measure glitches with **no** increase in the XRunCount. This works around the problem of AAudio enforcing a minimum BufferSize. This detects if the DSP reads earlier than reported. Adding a negative offset to timestamp should fix it.

We could also test if we can sleep so long that we get XRuns but no detected glitches?

Then setBufferSize to Max to see if there are glitches. If so then search for sleep time that is on the edge of causing glitches. This detects if the DSP reads later than reported. Adding a positive offset to timestamp should fix it.

A similar test could be done for input timing. Use a separate callback thread on a different CPU.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.