Re: Behavior of source nodes on connect/disconnect

>> 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