[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 11:36:45 PST 2016


--- Comment #8 from Ashley Gullen <ashley at scirra.com> ---
(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.

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?

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/f2cac5c3/attachment.html>

More information about the webkit-unassigned mailing list