servo/media

AudioBufferSourceNode: Ignore "when" parameter if it's in the past by less than a tick

Opened this issue · 0 comments

Start()'s when parameter should be ignored if it's in the past. We currently use a simple heuristic in process() to determine if it should be ignored, but by the time process() runs it's impossible to determine what's in the past to subsample accuracy; see

// XXX(collares): Need a better way to distingush between Start()

This probably involves having access to context.currentTime when sending/receiving the SetStartParams message. Fixing this means that the "when" parameter should also get ignored when it is a little bit in the past (less than a tick before currentTime; it already gets ignored in other cases).