-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AudioWorklet section #869
Conversation
The <dfn>AudioWorklet</dfn> interface | ||
</h2> | ||
<p> | ||
The AudioWorklet object allows importing user-supplied Javascript code |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the style is to use either <code>AudioWorklet</code>
or <a><code>AudioWorklet</code></a>
if you want a link.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This paragraph is about AudioWorklet. Does it still need to be linked to itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix the rest of <a>
to <code>
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Represents the default value of the parameter. If this value is | ||
out of the range of float data type or the range defined by | ||
<code>minValue</code> and <code>maxValue</code>, an | ||
NotSupportedError exception MUST be thrown. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Markup on the exception name.
@domenic Can I ask you the TAG review on this new section? You can preview the change at my forked repo. |
I'm happy to review, and love worklets, although I am no longer on the TAG :). |
A fresh pair of eyes wouldn't hurt! Please take a look if you're willing. :) I just pinged @slightlyoff for the TAG review. |
Review notes:
|
Thanks @domenic! I will work on them. |
<section> | ||
<h2 id="AudioWorkletNodeOptions"> | ||
<dfn>AudioWorkletNodeOptions</dfn> | ||
</h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this somehow derive from the AudioNodeOptions
dictionary in #863?
@domenic Here's my response for your review.
Although this needs to be discussed with WG, I actually like the idea.
It's a subclass derived from
Hmm. This is surprising because this |
Two objects in different threads seem fine. The problem is that the spec as written creates the objects and then does nothing with them. This means that they can be garbage collected immediately. You need to specify where to store them and what holds references to them and uses them later.
The IDL is just instructions for how bindings generators in implementations should perform conversions and create APIs. It doesn't have anything to do with the web developer-facing interface and requirements for using the API. That is better documented in, well, documentation, not in normative interface definition language. Since the implementation should not have a |
Merged this PR after the LGTM from @joeberkovitz and @rtoy. As @padenot suggested, we decided to seek TAG review after adding the section into the spec because the PR is too bloated with comments. |
Apologies for the slow response. Reading through the comments here and the draft spec text, a few things in addition to @domenic's great comments:
interface Worklet {
[NewObject] Promise<void> import(USVString moduleURL);
}; whereas the interface in WebAudio uses interface AudioWorklet : Worklet {
Promise<void> import (DOMString moduleUrl);
};
|
On Thu, Sep 8, 2016 at 6:07 PM, Alex Russell notifications@github.com
https://www.chromestatus.com/metrics/feature/timeline/popularity/646 says For chrome, I'm expecting that once we get a good part of AudioWorklet
Ray |
Also there is to be a very solid polyfill for it, so people can drop a Because of the way the Web Audio API works, quite lot of applications This is going to be complicated, and will require coordinated On Fri, Sep 9, 2016, at 04:26 AM, rtoy wrote:
Links: |
PTAL.
Preview: http://hoch.github.io/web-audio-api/#AudioWorklet
I did not remove the AudioWorker section yet per @rtoy's suggestion. Once we settle on this change, I will submit another PR to remove the section.