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.05k stars 167 forks source link

Incomplete text for handling active source flag #1458

Closed rtoy closed 6 years ago

rtoy commented 6 years ago

In https://webaudio.github.io/web-audio-api/#defining-a-valid-audioworkletprocessor, at the paragraph before the Note, the second sentence says:

At the conclusion of each call to the process() method, if the result of applying ToBoolean (described in [ECMASCRIPT]) to the return value is assigned to the associated AudioWorkletProcessor's active source flag.

This is incomplete or badly phrased. It basically says "if the result...is assigned". There's no conclusion.

We need to add some kind of consequent.

karlt commented 6 years ago

I assume the word "if" should just be removed, because I assume the result is always assigned to the flag.

rtoy commented 6 years ago

Yes, that's probably the intent. But I'll wait for #1463 to resolve before doing anything about this.