- From: Joe Berkovitz <joe@noteflight.com>
- Date: Sun, 29 May 2016 10:57:50 -0400
- To: Hongchan Choi <hongchan@google.com>
- Cc: Audio Working Group <public-audio@w3.org>
Received on Sunday, 29 May 2016 14:58:18 UTC
Hi Group, I've appended a new example to https://github.com/WebAudio/web-audio-api/wiki/AudioWorklet-Examples that is based on the old VU Meter example in the spec. This explicates some of the issues with cross-thread communication like the old one (although I left out some of the details to make it simpler, like clipping). A couple more questions came up as I did this: - What is the best way to package JS definitions that can be used in both threads (like constants for default values)? I forget, can Worklet scripts themselves import scripts? Hope so! - We appear to be providing AudioContextInfo to an AudioWorkletProcessor both at construction time and in the process() method. Is this necessary? What if one needs to refer to some contextual information in, say, an onmessage() call? (This actually comes up in the example, which wants to use the sample rate to do some units conversion.) . . . . . ...Joe
Received on Sunday, 29 May 2016 14:58:18 UTC