Bug 226240

Summary: Glitches in AudioWorklet playback
Product: WebKit Reporter: Peter Salomonsen <pjsalomonsen>
Component: Web AudioAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Major CC: cdumez, pjsalomonsen, tobias.hegemann, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari Technology Preview   
Hardware: iPhone / iPad   
OS: iOS 14   

Description Peter Salomonsen 2021-05-25 13:41:00 PDT
After the update with AudioWorklet support there are glitches in the audio in all of the links below when playing on my Iphone XR:

https://petersalomonsen.com/nftmusic/2
https://petersalomonsen.com/nftmusic/3

The two links above has a polyfill and plays nicely if AudioWorklet is turned off.

The link below has no polyfill, relies only on AudioWorklet but has glitches even on my Macbook Air M1:

https://psalomo.near.page/nftparts1/index.html

Plays without problems in Chrome/Firefox on the same Macbooc Air M1.
Comment 1 Radar WebKit Bug Importer 2021-06-01 13:41:23 PDT
<rdar://problem/78730612>
Comment 2 Tobias Hegemann 2023-02-06 03:22:08 PST
This might be an duplicate of https://bugs.webkit.org/show_bug.cgi?id=251091

However, I created a simple and minified test for this issue as well:
https://delude88.github.io/ios-audioworklet-sample-rate/

Each time any AudioWorklet is used on iOS it creates glitches, that still remain and affects the whole audio context - until the it is recreated.