[Webkit-unassigned] [Bug 154538] Web Audio restores wrong sample rate and sounds distorted

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 24 12:20:20 PST 2016


https://bugs.webkit.org/show_bug.cgi?id=154538

--- Comment #9 from Jer Noble <jer.noble at apple.com> ---
(In reply to comment #8)
> (In reply to comment #5)
> > 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.

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.

> 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?

Yes, it should, and now I need to figure out why it's not. :)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160224/7dfd7618/attachment.html>


More information about the webkit-unassigned mailing list