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

Re: Comments on AudioWorklet examples

From: Hongchan Choi <hongchan@google.com>
Date: Wed, 01 Jun 2016 17:47:10 +0000
Message-ID: <CAGJqXNttB--t8LBZjpFNavcg4M3Dhbh5ENcNwvDmib7x_10+=w@mail.gmail.com>
To: Joe Berkovitz <joe@noteflight.com>
Cc: Audio Working Group <public-audio@w3.org>
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
Received on Wednesday, 1 June 2016 17:47:48 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 1 June 2016 17:47:48 UTC