W3C home > Mailing lists > Public > public-audio@w3.org > January to March 2012

Re: setValueFunctionAtTime for AudioParam

From: Alistair MacDonald <al@signedon.com>
Date: Tue, 27 Mar 2012 13:26:36 -0400
Message-ID: <CAJX8r2=pNC6tJSOU3ASpyi5rLN46zk_HJzP1X0gznba1_m6+8Q@mail.gmail.com>
To: Patrick Borgeat <patrick@borgeat.de>
Cc: public-audio@w3.org
Hi Patrick,

I have been thinking about your use-case over the last day or so and have a
further question.

Did you want to:

    A) Fire a callback, once, at an exact time?

    B) Fire the same callback many times?


Al




On Mon, Mar 26, 2012 at 1:35 PM, Patrick Borgeat <patrick@borgeat.de> wrote:

> yes, precisely!
>
> Patrick
>
>
> Am 26.03.2012 um 19:03 schrieb Alistair MacDonald:
>
> Thanks Patrick, I think I follow what you're saying.
>
> So in JavaScript, something like....
>
> AudioParam.setFunctionAtTime( callback, time );
>
>
> Then in the callback...
>
> var callback = function( buffer, time ){
>     // iterate channels/buffers
>     // update buffer
> };
>
>
> Does that look like what you had in mind?
>
>
>


-- 
Alistair MacDonald
SignedOn, Inc - W3C Audio WG
Boston, MA, (707) 701-3730
al@signedon.com - http://signedon.com
Received on Tuesday, 27 March 2012 17:27:09 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 17:27:13 GMT