<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>21862</bug_id>
          
          <creation_ts>2013-04-29 02:11:32 +0000</creation_ts>
          <short_desc>[AudioContext]: &apos;activeSourceCount&apos; should return number of all active Source nodes</short_desc>
          <delta_ts>2013-07-05 09:38:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>AudioWG</product>
          <component>Web Audio API</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>TBD</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Praveen R Jadhav">praveen.j</reporter>
          <assigned_to name="Chris Rogers">crogers</assigned_to>
          <cc>ehsan</cc>
    
    <cc>olivier.thereaux</cc>
          
          <qa_contact>public-audio</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>86938</commentid>
    <comment_count>0</comment_count>
    <who name="Praveen R Jadhav">praveen.j</who>
    <bug_when>2013-04-29 02:11:32 +0000</bug_when>
    <thetext>&apos;activeSourceCount&apos; 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87301</commentid>
    <comment_count>1</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2013-05-07 00:30:57 +0000</bug_when>
    <thetext>We are planning to remove the activeSourceCount property from AudioContext.  Its functionality can be implemented in Javascript by handling the &quot;ended&quot; event on AudioBufferSourceNodes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87325</commentid>
    <comment_count>2</comment_count>
    <who name="Praveen R Jadhav">praveen.j</who>
    <bug_when>2013-05-07 13:17:37 +0000</bug_when>
    <thetext>Thanks Ehsan. I can see that &quot;ended&quot; 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 &quot;ended&quot; event from AudioSourceNode IDL(Dummy implementation already available in WebKit) and inherit this in other source nodes, IMO.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87327</commentid>
    <comment_count>3</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2013-05-07 13:25:24 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Thanks Ehsan. I can see that &quot;ended&quot; event is added in AudioBufferSourceNode
&gt; and OscillatorNode IDL. But MediaElementAudioSourceNode and
&gt; MediaStreamAudioSourceNode too are source nodes and should also include this
&gt; event. 

HTMLMediaElement and MediaStream both have their own ended events which can be used for this purpose.

&gt; Better way should be sending &quot;ended&quot; event from AudioSourceNode IDL(Dummy
&gt; implementation already available in WebKit) and inherit this in other source
&gt; nodes, IMO.

FWIW AudioSourceNode has also been removed from the spec, and it should be removed from WebKit as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90383</commentid>
    <comment_count>4</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2013-07-05 09:38:12 +0000</bug_when>
    <thetext>Closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>