[Webkit-unassigned] [Bug 221334] Audio passed through WebAudio is delayed and glitchy on Safari

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 23 18:12:30 PDT 2022


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

--- Comment #17 from Ian Lovejoy <ian at actualarchitecture.com> ---
Created attachment 460472

  --> https://bugs.webkit.org/attachment.cgi?id=460472&action=review

Self-contained, minimal test case that reproduces the issue

In case it is helpful, I am attaching a self-contained, minimal HTML page (36 lines of JS, 47 lines total) that reproduces this issue 100% of the time for me.

The identical code is in CodePen:

https://codepen.io/LegDip/pen/KKQOMRr

Procedure to reproduce:

1. Pair device or computer with AirPods (in my testing it also occurs with other Bluetooth headsets)
2. Launch Safari & load page
3. Press "Request Mic"
4. Allow microphone permissions
5. Press "Play Tone"

Expected: Continuous 440hz tone
Actual: Strongly stuttering 440hz tone

Step #3 creates an AudioContext, calls getUserMedia() then loads an empty AudioWorklet module (from a Blob for this self-contained test case, but the same issue occurs when loading from a non-empty external file).

Step #5 simply plays an OscillatorNode and a GainNode (just for volume control)

If any other background would be helpful, please let me know.

-- 
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/20220624/5404bf9d/attachment.htm>


More information about the webkit-unassigned mailing list