My responses inline:
> - 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? > Yes, perhaps we should make contextInfo as a getter for AudioWorkletProcessor. (this.contextInfo) > Currently it appears that the context info would have to be captured and > cached in the constructor to be used later. Is that OK? > Making it as a getter will solve this issue. Right? All of your points are very meaningful and crucial! Feels like we are making progress here. Thanks! Best, Hongchan