Summary: | Audio playback rate sped up for few seconds when using createMediaElementSource | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Luigi Pulcini <luigi> | ||||||||||||
Component: | Web Audio | Assignee: | youenn fablet <youennf> | ||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||
Severity: | Major | CC: | cdumez, chrisguttandin, eric.carlson, esprehn+autocc, ews-watchlist, glenn, jer.noble, kangil.han, me, philipj, sergio, tero, webkit-bug-importer, youennf, youssefdevelops, y_soliman | ||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||
Version: | Safari 15 | ||||||||||||||
Hardware: | All | ||||||||||||||
OS: | All | ||||||||||||||
Attachments: |
|
Description
Luigi Pulcini
2022-04-23 14:46:12 PDT
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. 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]. |