Skip to content

length of AudioWorkletProcessor.process() parameter sequences with inactive inputs #1935

Closed

Description

@karlt

https://webaudio.github.io/web-audio-api/#dom-audioworkletprocessor-process-inputs-outputs-parameters-inputs currently says

If no connections exist to the nth input of the node during the current render quantum, then the content of inputs[n] is an empty array, indicating that zero channels of input are available. This is the only circumstance under which the number of elements of inputs[n] can be zero."

I assume the intention is the following?

If there are no actively processing AudioNodes connected to the nth input of the AudioWorkletNode for the current render quantum [...]

Otherwise ended AudioScheduledSourceNodes would obstruct the optimization if not explicitly disconnected.

Activity

  1. rtoy commented on Jun 3, 2019

    @rtoy
    Member

    I think that's the intent.

  2. hoch commented on Jun 13, 2019

    @hoch
    Member

    So this is answered? Can we close the issue?

  3. karlt commented on Jun 18, 2019

    @karlt
    ContributorAuthor

    The spec text doesn't quite match the intent right now. I suspect it predates resolution of #1471.

    This issue should remain open until the spec text is adjusted.

  4. self-assigned this
    on Jun 25, 2019
  5. added this to the Web Audio V1 milestone on Jun 25, 2019
  6. padenot commented on Jun 25, 2019

    @padenot
    Member

    I'll update the text with prose using the concepts introduced in #1471.

  7. added a commit that references this issue on Jun 26, 2019
    dde81dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions