<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - AudioContext.decodeAudioData() issues with decoded duration and sample length"
   href="https://bugs.webkit.org/show_bug.cgi?id=157362">157362</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>AudioContext.decodeAudioData() issues with decoded duration and sample length
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>iOS
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>OS X 10.11
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Web Audio
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>naomiaro&#64;gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=278133" name="attach_278133" title="an mp3 where I experience the issue">attachment 278133</a> <a href="attachment.cgi?id=278133&amp;action=edit" title="an mp3 where I experience the issue">[details]</a></span>
an mp3 where I experience the issue

AudioContext.decodeAudioData() returns double correct duration and samples array half filled with silence

My file is 30 seconds long - I'm told it's 60 seconds long on iOS and receive a samples array with the last half all garbage silence values.

<a href="http://naomiaro.github.io/waveform-playlist/stem-tracks.html">http://naomiaro.github.io/waveform-playlist/stem-tracks.html</a>

I've noticed this in my project above. It works correctly in Firefox and Chrome.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>