This is a time in seconds which starts at zero when the context is created and increases in real-time. All scheduled times are relative to it. This is not a transport time which can be started, paused, and re-positioned. It is always moving forward. A GarageBand-like timeline transport system can be very easily built on top of this (in JavaScript). This time corresponds to an ever-increasing hardware timestamp.
Property of apis/webaudio/AudioContextapis/webaudio/AudioContext
SyntaxNote: This property is read-only.
var result = AudioContext.currentTime;
Return Value
Returns an object of type NumberNumber
Examplesvar audioCtx = new AudioContext();
var ct = audioCtx.currentTime;
Related specifications
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4