The desired feature
High resolution time available within AudioWorkletGlobalScope.
This specification defines an API that provides the time origin, and current time in sub-millisecond resolution, such that it is not subject to system clock skew or adjustments.
I’d love to see (self.performance.now() + self.performance.timeOrigin) instead of Date.now() in my processor code, as my process function is called every other third milliseconds at the sample rate of 192000 Hz.
Note
Currently there’s no way for my processor to use it.
DOMException: Failed to execute 'postMessage' on 'MessagePort': Performance object could not be cloned.
The desired feature
High resolution time available within
AudioWorkletGlobalScope.I’d love to see
(self.performance.now() + self.performance.timeOrigin)instead ofDate.now()in my processor code, as myprocessfunction is called every other third milliseconds at the sample rate of 192000 Hz.Note
Currently there’s no way for my processor to use it.