Re: onEnded and connections

On Thu, Sep 5, 2013 at 9:44 AM, Chris Wilson <cwilso@google.com> wrote:

> Say you have a source node and set up an event handler for onended.
>  Does the event handler fire if the buffer is not actually connected to
> anything?
>
If the source is never connected to anything and it is GCed, onended should
> not be called, right?
>

Whether ended is fired must definitely not depend on when GC happens. GC
timing causing observable behavior changes is anathema.

The answer to your first question is less clear. The question itself is
also ambiguous: do you mean "not directly connected to an output" or "not
indirectly connected to a DestinationNode or MediaStreamAudioSourceNode"?
You'd also have to resolve *when* exactly the graph connectivity check is
performed. In any case, the simplest API is to fire the event no matter
what, and that's what Gecko does.

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 Wednesday, 4 September 2013 22:04:20 UTC