Re: Comments on AudioWorklet examples

> 
>> - 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.)
> 
> AudioContextInfo has the current playback time. I think this is necessary.

Sorry, I asked two questions but it wasn't clear and the second question is more important. 

Say an onmessage() call needs access to the context info (my example did). How would it get it?

Currently it appears that the context info would have to be captured and cached in the constructor to be used later. Is that OK?

Received on Tuesday, 31 May 2016 12:15:11 UTC