Skip to content
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

[audioworklets] Define "no input connection" in AudioWorkletProcessor.process() #1377

Closed
hoch opened this issue Sep 27, 2017 · 1 comment
Closed
Assignees
Milestone

Comments

@hoch
Copy link
Member

hoch commented Sep 27, 2017

@rtoy suggested how to indicate "no input connect" state in AudioWorkletProcessor.process() is not defined. If I am not mistaken, this is rather simple and easy:

process(inputs, outputs, parameters) {
  if (inputs.length === 0)
    console.log('No input connection.');
}

We need to add some texts in the process() description.

@hoch hoch self-assigned this Sep 27, 2017
@mdjp mdjp added this to the Web Audio V1 milestone Sep 28, 2017
@joeberkovitz
Copy link
Contributor

There's already language for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants