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

Behavior of source nodes on connect/disconnect

From: Raymond Toy <rtoy@google.com>
Date: Thu, 12 Sep 2013 13:51:53 -0700
Message-ID: <CAE3TgXGAH2QUMtCF6jKyPTE2foeMqsU79r5ZGDryHrnj3Vrp=A@mail.gmail.com>
To: "public-audio@w3.org" <public-audio@w3.org>
While fixing a different issue in Chrome's webaudio, the following
questions came up.

If you have a (long) source node that has started playing and then you
disconnect it (completely) after 1 sec from one part of the graph and then
wait for, say, 1 sec, and connect it to a different (or same?) part of the
graph, what should happen?  Does the node start playing again?  What does
it play? The source starting at time 2 sec?

A different scenario:  You've started playing a source node, and then
completely disconnect it from the graph and then add a onended listener.
 What should happen? Does the onended listener get called when the source
would normally end?

I think these are not scenarios that would normally occur, but it came up
during a review, and I didn't know the answer.

Help!

Ray
Received on Thursday, 12 September 2013 20:52:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:11 UTC