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

Re: Behavior of source nodes on connect/disconnect

From: Jussi Kalliokoski <jussi.kalliokoski@gmail.com>
Date: Sat, 14 Sep 2013 07:29:43 +0300
Message-ID: <CAJhzemXKPJDsV=YNBU5H=zkFv4ExUVpo_g-pgy8kaxSy5+VUMg@mail.gmail.com>
To: "Robert O'Callahan" <robert@ocallahan.org>
Cc: Jer Noble <jer.noble@apple.com>, Chris Wilson <cwilso@google.com>, Raymond Toy <rtoy@google.com>, "public-audio@w3.org" <public-audio@w3.org>
On Sat, Sep 14, 2013 at 2:18 AM, Robert O'Callahan <robert@ocallahan.org>wrote:

> On Fri, Sep 13, 2013 at 1:52 PM, Jussi Kalliokoski <
> jussi.kalliokoski@gmail.com> wrote:
>
>> On the other end there's the tediousness of a ScriptProcessorNode your
>> module got from another module and you don't know how to make sure it gets
>> garbage collected. I see that as a much bigger pain point.
>>
>
> You could disconnect the inputs and outputs and remove the event listener
> and then you're in good shape.
>

As a module without graph introspection, you most likely don't have another
module's inputs or outputs, depending on whether you want to connect to or
from the node, and even less likely do you have a reference to the event
listener. Even the node itself doesn't necessarily know how to disconnect
its inputs. It's doable if modules share all this information, but again,
bigger pain point.

J


> But I think it would be better to add per AudioNode pause() and resume()
> APIs. Then all you have to do is pause() it and drop JS references and
> you're done.
>
> Rob
> --
> Jtehsauts  tshaei dS,o n" Wohfy  Mdaon  yhoaus  eanuttehrotraiitny  eovni
> le atrhtohu gthot sf oirng iyvoeu rs ihnesa.r"t sS?o  Whhei csha iids  teoa
> stiheer :p atroa lsyazye,d  'mYaonu,r  "sGients  uapr,e  tfaokreg iyvoeunr,
> 'm aotr  atnod  sgaoy ,h o'mGee.t"  uTph eann dt hwea lmka'n?  gBoutt  uIp
> waanndt  wyeonut  thoo mken.o w  *
> *
>
Received on Saturday, 14 September 2013 04:30:10 UTC

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