New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AudioContext]: 'activeSourceCount' should return number of all active Source nodes #206
Comments
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. |
(In reply to comment #2)
HTMLMediaElement and MediaStream both have their own ended events which can be used for this purpose.
FWIW AudioSourceNode has also been removed from the spec, and it should be removed from WebKit as well. |
Closing. |
'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.
The text was updated successfully, but these errors were encountered: