<?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>19854</bug_id>
          
          <creation_ts>2012-11-04 14:46:50 +0000</creation_ts>
          <short_desc>AudioContext.createBuffer(chan, len, rate) should accept only non-zero positive values</short_desc>
          <delta_ts>2014-10-28 17:17:06 +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>PC</rep_platform>
          <op_sys>Linux</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="Olli Pettay">bugs</reporter>
          <assigned_to name="Chris Rogers">crogers</assigned_to>
          <cc>ehsan</cc>
          
          <qa_contact>public-audio</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>77845</commentid>
    <comment_count>0</comment_count>
    <who name="Olli Pettay">bugs</who>
    <bug_when>2012-11-04 14:46:50 +0000</bug_when>
    <thetext>Currently one can create useless buffers by passing 
0 as one of the parameter. That should not be allowed, but an
exception should be thrown.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77899</commentid>
    <comment_count>1</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2012-11-05 18:53:59 +0000</bug_when>
    <thetext>*** Bug 19867 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77900</commentid>
    <comment_count>2</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2012-11-05 18:54:32 +0000</bug_when>
    <thetext>I think the INDEX_SIZE_ERR exception must be thrown in this case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78279</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Rogers">crogers</who>
    <bug_when>2012-11-13 21:20:39 +0000</bug_when>
    <thetext>Before I change the spec, can we decide on the exception code for out-of-range sampleRate?  It seems odd to talk in terms of &quot;index&quot; in this case.  What do typed arrays use for zero length?

I&apos;d just like to get all the exception codes in order for createBuffer()...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>78287</commentid>
    <comment_count>4</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2012-11-13 22:28:05 +0000</bug_when>
    <thetext>Hmm, we could also use NOT_SUPPORTED_ERR.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113899</commentid>
    <comment_count>5</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:14:13 +0000</bug_when>
    <thetext>Web Audio API issues have been migrated to Github. 
See https://github.com/WebAudio/web-audio-api/issues</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>114045</commentid>
    <comment_count>6</comment_count>
    <who name="Olivier Thereaux">olivier.thereaux</who>
    <bug_when>2014-10-28 17:17:06 +0000</bug_when>
    <thetext>Closing. See https://github.com/WebAudio/web-audio-api/issues for up to date list of issues for the Web Audio API.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>