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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>111952</bug_id>
          
          <creation_ts>2013-03-10 20:29:33 -0700</creation_ts>
          <short_desc>WebKit uses the duration argument passed to AudioBufferSourceNode.start as the length of the buffer when looping</short_desc>
          <delta_ts>2013-03-11 10:34:53 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Web Audio</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>UNCONFIRMED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Ehsan Akhgari [:ehsan]">ehsan</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>crogers</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>852028</commentid>
    <comment_count>0</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2013-03-10 20:29:33 -0700</bug_when>
    <thetext>The spec says:

&quot;Note that the default values for loopStart and loopEnd are both 0, which indicates that looping should occur from the very start to the very end of the buffer. &quot;

According to this, WebKit&apos;s behavior in this test case &lt;http://people.mozilla.org/~eakhgari/webaudio/loop-webkitbug.html&gt; is wrong.  The looping sound when pressing both the first and second buttons should be the same.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852029</commentid>
    <comment_count>1</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2013-03-10 20:32:14 -0700</bug_when>
    <thetext>I can reproduce this in Chrome Canary, but it seems like WebKit Nightly cannot decode ogg files, so I cannot run the test there.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852032</commentid>
    <comment_count>2</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2013-03-10 20:34:39 -0700</bug_when>
    <thetext>Furthermore, the spec says:

&quot;in loop mode will continue playing until it reaches the actualLoopEnd position in the buffer (or the end of the buffer), at which point it will wrap back around to the actualLoopStart position in the buffer, and continue playing according to this pattern&quot;, which seems to suggest that the duration argument should be completely ignored in looping mode.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852053</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Rogers">crogers</who>
    <bug_when>2013-03-10 22:48:39 -0700</bug_when>
    <thetext>Let me have a look.  There may be some work in the spec we need to do.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852348</commentid>
    <comment_count>4</comment_count>
    <who name="Ehsan Akhgari [:ehsan]">ehsan</who>
    <bug_when>2013-03-11 08:32:08 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; Let me have a look.  There may be some work in the spec we need to do.

Are you planning to change the spec for this?  I&apos;m currently implementing what the current spec says, and this just seems like a bug in WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>852448</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Rogers">crogers</who>
    <bug_when>2013-03-11 10:34:53 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Let me have a look.  There may be some work in the spec we need to do.
&gt; 
&gt; Are you planning to change the spec for this?  I&apos;m currently implementing what the current spec says, and this just seems like a bug in WebKit.

Let me take a closer look today</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>