[Webkit-unassigned] [Bug 251091] Distorted audio after getUserMedia when playing with AudioWorkletNode

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 6 09:14:54 PST 2023


--- Comment #5 from Chris Dumez <cdumez at apple.com> ---
It is because of this logic:
void RemoteAudioSessionProxyManager::updatePreferredBufferSizeForProcess()
    if (CoreAudioCaptureSourceFactory::singleton().isAudioCaptureUnitRunning()) {
        CoreAudioCaptureSourceFactory::singleton().whenAudioCaptureUnitIsNotRunning([weakThis = WeakPtr { *this }] {
            if (weakThis)
   // ...

If we're capturing (which we are here since we called getUserMedia), then we defer the setting of the preferred buffer size (128) until we're done capturing. Since capturing is ongoing, we just keep using 960, which breaks Web Audio.

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/20230206/cf035162/attachment.htm>

More information about the webkit-unassigned mailing list