AudioBufferSourceNode: Ignore "when" parameter if it's in the past by less than a tick
Opened this issue · 0 comments
collares commented
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
media/audio/buffer_source_node.rs
Line 224 in 86b9a28
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).