MCPcopy Create free account
hub / github.com/stemdeckapp/stemdeck / _getCurrentTime

Function _getCurrentTime

static/js/chunkedAudioEngine.js:165–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 const _cache = new Map();
164
165 function _getCurrentTime() {
166 if (!playing || !_audioStarted) return _startOffset;
167 return Math.min((ctx.currentTime - _startCtxTime) * _playbackRate + _startOffset, _duration);
168 }
169
170 // --- fetch helpers ---
171

Callers 4

_maybeScheduleFunction · 0.85
_tickFunction · 0.85
pauseFunction · 0.85
setPlaybackRateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected