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

Re: Behavior of source nodes on connect/disconnect

From: Jer Noble <jer.noble@apple.com>
Date: Fri, 13 Sep 2013 16:23:18 -0700
Cc: 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: <D1EE6883-93AD-4318-859D-BB765D124764@apple.com>
To: Robert O'Callahan <robert@ocallahan.org>

On Sep 13, 2013, at 4:16 PM, Robert O'Callahan <robert@ocallahan.org> wrote:

> On Fri, Sep 13, 2013 at 1:50 PM, Jer Noble <jer.noble@apple.com> wrote:
> Of course, HTMLMediaElements must pause when they are removed from the DOM.  So in the general case, disconnecting a playing media element and throwing away all references to it will allow it to be GCd.
> But you can call play() on a media element after removing it from the DOM.
> If we were to follow the media element model in Web Audio, we would introduce per-node pause() and resume() APIs and specify that when you disconnect the last output of a node, there is an implicit pause() call.

I’d actually be fine with that.

One further hypothetical: should “pause” and “play” traverse down the graph?  I.e., if you “pause” a ConvolutionNode, would the AudioBufferSourceNode feeding it pause as well.

Received on Friday, 13 September 2013 23:23:47 UTC

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