W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2013

Re: Behavior of source nodes on connect/disconnect

From: Karl Tomlinson <karlt+public-audio@karlt.net>
Date: Fri, 13 Sep 2013 21:48:38 +1200
To: kg@luminance.org
Cc: "Robert O'Callahan" <robert@ocallahan.org>, Jussi Kalliokoski <jussi.kalliokoski@gmail.com>, Chris Wilson <cwilso@google.com>, Raymond Toy <rtoy@google.com>, "public-audio\@w3.org" <public-audio@w3.org>
Message-ID: <87k3ilt5l5.fsf@karlt.net>
>> On Thu, Sep 12, 2013 at 9:39 PM, Jussi Kalliokoski <
>> jussi.kalliokoski@gmail.com> wrote:
>>> Would that mean that the
>>> ScriptProcessorNode would keep firing onaudioprocess while it's not
>>> connected?

"audioprocess events are only dispatched if the ScriptProcessorNode has at least one input or one output connected."

However ...

K. Gadd writes:

> Doesn't that mean that ScriptProcessorNode can be used to observe GCs
> (measure how long it's been since the last onAudioProcess occurred on a
> disconnected ScriptProcessorNode)?

the answer to this is still yes.

If an AudioNode connected to the ScriptProcessorNode is deleted
because it has no references, then the ScriptProcessNode will stop
firing onaudioprocess at the time when the connected node is deleted.
Received on Friday, 13 September 2013 09:49:58 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:24 UTC