WebAudio / web-audio-api

The Web Audio API v1.0, developed by the W3C Audio WG
https://webaudio.github.io/web-audio-api/
Other
1.04k stars 165 forks source link

AudioWorkletGlobalScope is missing performance.now() (but has Date.now()) #2527

Closed juj closed 1 year ago

juj commented 1 year ago

Calling performance.now() is failing in Audio Worklets. However the inferior Date.now() does exist there.

It would be great to get performance.now() there as well, since most audio applications are likely about calculating audio synthesis timing, so will be looking at precise wallclock times, rather than imprecise Date calculations.

hoch commented 1 year ago

We're aware of the problem. The spec change will be presumably simple, but the impl might take a while.

Closing this as a duplicate of: https://github.com/WebAudio/web-audio-api/issues/2413.