Bug 311000

Summary: HTMLMediaElement preservesPitch=true does not work when using AudioContext
Product: WebKit Reporter: Adele Peterson <adele>
Component: MediaAssignee: Jer Noble <jer.noble>
Status: RESOLVED FIXED    
Severity: Normal CC: ahmad.saleem792, jer.noble, karlcow, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Mac (Apple Silicon)   
OS: macOS 26   
See Also: https://bugs.webkit.org/show_bug.cgi?id=310951
Attachments:
Description Flags
test html file + MP3 none

Adele Peterson
Reported 2026-03-28 15:12:33 PDT
Created attachment 478832 [details] test html file + MP3 HTMLMediaElement preservesPitch=true does not work when using AudioContext. See attached test case and observe chipmunk (2x speed in AudioContext) and ghost (0.5x speed in AudioContext) voices. Tested in the 310163@main nightly on Tahoe. Follow up needed for fix to https://bugs.webkit.org/show_bug.cgi?id=240405 https://github.com/WebKit/WebKit/commit/08ffa75952b7294029da4efd21197d6b697623ca
Attachments
test html file + MP3 (302.85 KB, application/zip)
2026-03-28 15:12 PDT, Adele Peterson
no flags
Adele Peterson
Comment 1 2026-03-29 01:51:14 PDT
our workaround in Safari is to pre-download every audio clip and process it through AudioContext for gain and pan to put it back into an audio element for playback with rate and preservePitch functionality. We are losing the benefits of using one AudioContext for gesture intent.
Radar WebKit Bug Importer
Comment 2 2026-03-30 15:33:10 PDT
Jer Noble
Comment 3 2026-03-30 15:42:28 PDT
EWS
Comment 4 2026-04-03 10:35:32 PDT
Committed 310521@main (1774dbef65c9): <https://commits.webkit.org/310521@main> Reviewed commits have been landed. Closing PR #61724 and removing active labels.
Brent Fulgham
Comment 5 2026-04-29 10:09:23 PDT
This change is present in Safari Technology Preview 242. Please install that revision or newer to confirm the fix. Release notes: https://webkit.org/blog/17934/release-notes-for-safari-technology-preview-242/
Brent Fulgham
Comment 6 2026-04-29 11:46:10 PDT
This change is present in Safari Technology Preview 241. Please install that revision or newer to confirm the fix. Release notes: https://webkit.org/blog/17917/release-notes-for-safari-technology-preview-241/
Note You need to log in before you can comment on or make changes to this bug.