change: Expose Performance interface to AudioWorklet#169
change: Expose Performance interface to AudioWorklet#169mjwilson-google wants to merge 1 commit into
Conversation
|
One conclusion from discussing this at the WebPerfWG call - we need to verify that the crossOriginIsolated references in the HR-time algorithms work well in worklets |
|
There is still interest from the Web Audio community in this change. Would it be possible for me to join a WG call to help with any blocking tasks, or perhaps we could discuss this at TPAC this year? |
|
We can discuss this on the next call, on August 28th 10am PT. Would that work for you? |
|
Yes that would work, thank you. I can see the call details on the W3C site; do I need to do anything beforehand or can I just join the call directly as a guest? |
|
Added you to the invite. You can just join :) |
|
Thank you for including me in the meeting today. Here are my notes:
|
|
Just wanted to chime in here and say that we'd find this addition incredibly helpful. We're working on a suite of benchmarking tests for audio/DSP load, and having a timer that can give us a higher resolution than 1ms would obviously make the results far more meaningful. For our use case, we'd be fine with a high-resolution timer only being available for cross-origin-isolated sites. |
|
Here are some other use cases I heard from developers:
|
|
During TPAC 2025 we came to the following conclusions:
Next step is for me to revise this PR as above, then we can iterate if necessary. |
|
@mjwilson-google did you get a chance to look at this again? We're ready to ship this in Firefox, but won't do so before the spec is merged and clear. |
|
No, I haven't had a chance to revise the PR yet. From discussion at TPAC it should be straightforward (that is, there are no blockers that I know of), I have just been focused on other things. |
Closes WebAudio/web-audio-api#2413
The Audio Working Group would like to ask that
self.performance.now()be exposed in AudioWorklet.There is desire from the Web Audio community, and positive comments from browser implementers (please refer to the linked issue).
Implementation commitment:
Preview | Diff