[Webkit-unassigned] [Bug 241223] Web audio rendering becomes garbled with switching from speakers to headphones (and vice-versa)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 14 13:34:07 PST 2022


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

--- Comment #5 from Chris Dumez <cdumez at apple.com> ---
(In reply to Chris Dumez from comment #4)
> One thing I noticed is that RemoteAudioDestination::render() normally gets
> called with numberOfFrames=128. However, when I plug in the headphones,
> RemoteAudioDestination::render() then gets called consistently with
> numberOfFrames=480.

And when I restart the browser with the headphone plugged in, numberOfFrames becomes 128 again. As far as I know, our code assumes a rendering quantum of 128 for WebAudio so it is probably not too surprising that rendering goes bad when the rendering quantum becomes 480.

As far as I know MediaSessionManagerCocoa::updateSessionState() is supposed to set the preferred buffer size of 128 when Web Audio is in use. However, clearly this gets ignored when switching audio output.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221114/b8c256bb/attachment.htm>


More information about the webkit-unassigned mailing list