<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Audio restores wrong sample rate and sounds distorted"
   href="https://bugs.webkit.org/show_bug.cgi?id=154538#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Audio restores wrong sample rate and sounds distorted"
   href="https://bugs.webkit.org/show_bug.cgi?id=154538">bug 154538</a>
              from <span class="vcard"><a class="email" href="mailto:jer.noble&#64;apple.com" title="Jer Noble &lt;jer.noble&#64;apple.com&gt;"> <span class="fn">Jer Noble</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=154538#c8">comment #8</a>)
<span class="quote">&gt; (In reply to <a href="show_bug.cgi?id=154538#c5">comment #5</a>)
&gt; &gt; All I'm saying is that Web Audio developers can't assume that the output
&gt; &gt; sample rate will always be 44.1kHz.  If they are manually creating and
&gt; &gt; filling buffers assuming that the sample rate is 44.1kHz (when instead it's
&gt; &gt; 48kHz), they could playback artifacts.
&gt; I should point out Web Audio developers make no such assumptions - we don't
&gt; choose the sample rate of decoded buffers, the AudioContext does. I suppose
&gt; if anything, the spec itself is making the assumption the AudioContext keeps
&gt; running at the same sample rate.</span >

For decoded buffers yes. But some Web Audio authors do crazy stuff with custom decoders and generators; for them, they must pay attention to the output sample rate.

<span class="quote">&gt; I think the spec requires that anything played at a different sample rate to
&gt; the AudioContext be resampled, since you can call createBuffer() to create a
&gt; buffer at a given sample rate (e.g. 22050) and play it, and it presumably is
&gt; resampled to the AudioContext rate. If the AudioContext sample rate changes
&gt; after creation, shouldn't this kick in for existing buffers?</span >

Yes, it should, and now I need to figure out why it's not. :)</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>