<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@apple.com" title="Jer Noble <jer.noble@apple.com>"> <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">> (In reply to <a href="show_bug.cgi?id=154538#c5">comment #5</a>)
> > All I'm saying is that Web Audio developers can't assume that the output
> > sample rate will always be 44.1kHz. If they are manually creating and
> > filling buffers assuming that the sample rate is 44.1kHz (when instead it's
> > 48kHz), they could playback artifacts.
> I should point out Web Audio developers make no such assumptions - we don't
> choose the sample rate of decoded buffers, the AudioContext does. I suppose
> if anything, the spec itself is making the assumption the AudioContext keeps
> 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">> I think the spec requires that anything played at a different sample rate to
> the AudioContext be resampled, since you can call createBuffer() to create a
> buffer at a given sample rate (e.g. 22050) and play it, and it presumably is
> resampled to the AudioContext rate. If the AudioContext sample rate changes
> 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>