Bug 223519
Summary: | decodeAudioData chops off beginning portion of audio file | ||
---|---|---|---|
Product: | WebKit | Reporter: | Joe Hanley <joe> |
Component: | Web Audio | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | ap, cdumez, webkit-bug-importer |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 14 | ||
Hardware: | Mac (Intel) | ||
OS: | macOS 10.15 |
Joe Hanley
In Safari, decodeAudioData is returning a buffer that is missing the first ~3000 samples. For short audio files (like drum sounds for example) this can have a significant impact on the sound.
To recreate this bug, do the following in both Chrome and Safari:
Go to https://jsfiddle.net/hanley101/kbjh8sz7/17/
Load this file: https://www.dropbox.com/s/48yub3sfa2caw7x/TomLo_Ac.mp3?dl=0
Hit Decode to see the buffer length and duration. Compare between Chrome and Safari and you'll see Safari's buffer length and duration are smaller.
NOTE: The jsfiddle should also play the file when you hit decode, though this is only working in Chrome, not sure why.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/75889203>