getOutputTimestamp() property of the
AudioContext interface returns a new
AudioTimestamp object containing two correlated context's audio stream position values.
The two values are as follows:
AudioTimestamp.contextTimemember contains the time of the sample frame which is currently being rendered by the audio output device (i.e., output audio stream position), in the same units and origin as context's
AudioTimestamp.performanceTimemember contains the time, estimating the moment when the sample frame corresponding to the stored contextTime value was rendered by the audio output device, in the same units and origin as
var timestamp = AudioContext.getOutputTimestamp()
AudioTimestamp, which has the following properties.
contextTime: A point in the time coordinate system of the
performanceTime: A point in the time coordinate system of a
|Web Audio API
The definition of 'getOutputTimestamp()' in that specification.
|Working Draft||Initial definition.|