W3C home > Mailing lists > Public > public-audio@w3.org > April to June 2016

Re: Comments on AudioWorklet examples

From: Joe Berkovitz <joe@noteflight.com>
Date: Tue, 31 May 2016 08:14:30 -0400
Cc: Audio Working Group <public-audio@w3.org>
Message-Id: <0C70F1B9-1688-4FC3-B14C-43E7047D39A7@noteflight.com>
To: Hongchan Choi <hongchan@google.com>
> 
>> - 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

This archive was generated by hypermail 2.3.1 : Tuesday, 31 May 2016 12:15:11 UTC