Re: [web-audio-api] [AudioContext]: 'activeSourceCount' should return number of all active Source nodes (#206)

> [Original comment](https://www.w3.org/Bugs/Public/show_bug.cgi?id=21862#2) by Ehsan Akhgari [:ehsan] on W3C Bugzilla. Tue, 07 May 2013 13:25:24 GMT

(In reply to [comment #2](#issuecomment-24244791))
> 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.

---
Reply to this email directly or view it on GitHub:
https://github.com/WebAudio/web-audio-api/issues/206#issuecomment-24244796

Received on Wednesday, 11 September 2013 14:39:30 UTC