Bug 228221

Summary: Audible click when audio is looping
Product: WebKit Reporter: Jean-Yves Avenard [:jya] <jean-yves.avenard>
Component: Web AudioAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=227110

Description Jean-Yves Avenard [:jya] 2021-07-22 23:08:00 PDT
Open
https://jyavenard.github.io/htmltests/tests/webaudio/decodeAudioData.html

Select Opus.webm and 48000Hz ; click on play.

96000 frames will be decoded, sample is exactly 2s long.

When the audio loop, you can hear a small click.

Running this on Firefox and Chrome, no click (indicative of a short silence being played) can be heard.
Comment 1 Radar WebKit Bug Importer 2021-07-22 23:08:24 PDT
<rdar://problem/81003667>
Comment 2 Jean-Yves Avenard [:jya] 2021-07-26 20:39:00 PDT
I believe this is due to rdar://81002989 ; the number of frames returned is incorrect.

What we hear is a combination of the frames that should have been dropped but weren't and the frames never returned when they should have been decoded.
Comment 3 Jean-Yves Avenard [:jya] 2021-08-13 04:24:55 PDT
This got fixed already.