[Webkit-unassigned] [Bug 215314] Distorted audio when using createMediaElementSource
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 30 13:02:02 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=215314
--- Comment #4 from Chris Dumez <cdumez at apple.com> ---
(In reply to Luigi Pulcini from comment #3)
> As I mentioned in https://bugs.webkit.org/show_bug.cgi?id=211394, this
> behavior in connection to the use of the CreateMediaElementSource method
> seems to be related to a resampling problem when there is a mismatch between
> the sample rate of the audio file being played and the one of the user's
> device (which is in no way controllable by the developer).
>
> The following video clearly demonstrates the different behavior between
> Chrome 86 (86.0.4240.198) and Safari 14.0 (15610.1.28.1.9, 15610) under
> MacOS 10.15.7.
> https://youtu.be/KYtb-FnjbpQ
It is honestly hard for me to tell what's wrong when watching this video. The audio does not sound obviously different / wrong to me.
>
> The test page shown in the video can be found at the following address:
> https://www.waveplayer.info/createmediaelementsource-test/
>
> Regardless of the sample rate and the bitrate of the audio file being played
> back, my tests seem to conclude that the audio distortion is less likely to
> occur while downsampling rather than upsampling. So, if the audio context is
> created with the device set to 96 kHz, then switching the device sample rate
> to a smaller value doesn't affect the audio. By contrast, setting the sample
> rate of the device to a smaller value (e.g. 44.1 kHz) and then switching to
> a greater value is more likely to introduce the resampling distortion.
>
> None of these behaviors occur in any other browser or device.
> It is just Safari and iOS.
>
> I hope this helps to clarify.
We did fix major resampling issues super recently via Bug 219201 so hopefully this fixes this too. The next STP build will hopefully get the resampling fix.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201130/95c74f50/attachment.htm>
More information about the webkit-unassigned
mailing list