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

Use AudioWorklets for synthesizer #480

Closed
Danielku15 opened this issue Dec 27, 2020 · 1 comment · Fixed by #642
Closed

Use AudioWorklets for synthesizer #480

Danielku15 opened this issue Dec 27, 2020 · 1 comment · Fixed by #642
Assignees
Labels

Comments

@Danielku15
Copy link
Member

AudioWorklets provide a nice way of synthesizing audio in the a background worker instead of the UI thread. It would be worth a test synthesizing the audio via worklet to avoid hanging audio in the UI.

Various things will need to be considered:

  • How can we send custom messages from the worklet to the UI for synth events.
  • Check if the worklet would only syntheiszes one buffer and buffering is done via nodes, or if the worklet would spawn another worker for synthesizing and do a custom buffering like the output today.
  • AudioWorklets are only available in secure contexts and hence the old processor node still needs to be available in parallel.
@Danielku15
Copy link
Member Author

AudioWorklets are now used when available by the browser and security context. the old-fashioned script processor is still in place as fallback scenario.

@Danielku15 Danielku15 added this to the [v1.3.0] Audio Worklets milestone Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant