Tests the values returned from AudioContext.getOutputTimestamp()
Press "Start testing" to run the test. You should hear a sine tone (beeping) in 2 seconds. During the delay the color of "beeping indicator" is red.
The color of "beeping indicator" is yellow when 'context.currentTime' is at beeping interval but the estimated output position is not there yet and thus beeping is not audible.
Note: the "beeping indicator" might never be seen yellow if the test is run in the environment with low latency audio (i.e. if the output latency is smaller than frame update period).
The color of "beeping indicator" is green when the estimated output position is at beeping interval, this should happen exactly when beeping is audible.
Press "Refresh values" to fetch the fresh output audio timestamp values and compare them to 'AudioContext.currentTime' and 'Performance.now()'.
When context is running the obtained audio timestamp and performance timestamp values must be always slightly behind of 'AudioContext.currentTime' and 'Performance.now()' correspondingly.
Please see Web Audio API for more details.