Several customers of my plugin WavePlayer are reporting that audio playback in Safari 15 and iOS 15 is "sped up" for a few seconds before settling to the correct rate. I have just tested this on my MacBookPro with Mac OS 10.15.7 and Safari 15.4 using the simplest createMediaElementSource implementation you could possibly think of (a 16-line script) and can confirm the bad behavior only in Safari, while Chrome, Firefox, and Edge are not affected. You can test this at the following address: https://webaudioapi.com/samples/audio-tag/
Confirming I'm also seeing the same behaviour on OS X 12.3.1, Safari 15.4. The speeding-up happens reliably at the beginning, and seems to reoccur occasionally well into the playback. The same happens both when starting playback with the element already attached into the web audio graph, and when connecting a previously started element.
Yes I see this behavior when trying to use createMediaElementSource on both iOS and Safari, with both video and audio tags. I think it happens across the board. Also, the audio is delayed significantly in the context of using a video tag.
<rdar://problem/92569332>
Created attachment 459215 [details] Patch
Comment on attachment 459215 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=459215&action=review > Source/WebCore/ChangeLog:9 > + We added a way for AudioSampleDataSource to reduce latemcy due to its audio buffer by reading the audio buffer faster s/latemcy/latency/
Created attachment 459229 [details] Patch for landing
Eric Carslon found in /Volumes/Data/worker/Commit-Queue/build/Source/WebCore/ChangeLog does not appear to be a valid reviewer according to contributors.json. /Volumes/Data/worker/Commit-Queue/build/Source/WebCore/ChangeLog neither lists a valid reviewer nor contains the string "Unreviewed" or "Rubber stamp" (case insensitive).
Created attachment 459359 [details] Patch for landing
Created attachment 459394 [details] Patch for landing
Created attachment 459396 [details] Patch for landing
Committed r294221 (250579@main): <https://commits.webkit.org/250579@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 459396 [details].