This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
'activeSourceCount' should return no. of active AudioBufferSourceNodes, OscillatorNodes and ScriptProcessoreNodes(this can generate audio too) at any given time. Current WebKit code returns no. of active AudioBufferSourceNodes and OscillatorNodes.
We are planning to remove the activeSourceCount property from AudioContext. Its functionality can be implemented in Javascript by handling the "ended" event on AudioBufferSourceNodes.
Thanks Ehsan. I can see that "ended" event is added in AudioBufferSourceNode and OscillatorNode IDL. But MediaElementAudioSourceNode and MediaStreamAudioSourceNode too are source nodes and should also include this event. Better way should be sending "ended" event from AudioSourceNode IDL(Dummy implementation already available in WebKit) and inherit this in other source nodes, IMO.
(In reply to comment #2) > Thanks Ehsan. I can see that "ended" event is added in AudioBufferSourceNode > and OscillatorNode IDL. But MediaElementAudioSourceNode and > MediaStreamAudioSourceNode too are source nodes and should also include this > event. HTMLMediaElement and MediaStream both have their own ended events which can be used for this purpose. > Better way should be sending "ended" event from AudioSourceNode IDL(Dummy > implementation already available in WebKit) and inherit this in other source > nodes, IMO. FWIW AudioSourceNode has also been removed from the spec, and it should be removed from WebKit as well.
Closing.