Bug 248658

Summary: AudioBufferSourceNode.start with duration fails sometimes
Product: WebKit Reporter: Daniel Gjörwell <daniel.gjorwell>
Component: Web AudioAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, jer.noble, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Safari 15   
Hardware: Unspecified   
OS: Unspecified   

Description Daniel Gjörwell 2022-12-02 05:22:07 PST
WebKit on iOS treats the duration argument to AudioBufferSourceNode incorrectly when the node is set to looping.

A simple example can be found here

https://jsfiddle.net/DanielGjorwell/x75uavL3/14/

Steps to reproduce:
1. Load the link above on iOS Safari 15 or later.
2. Once enabled, press the PLAY FROM OFFSET button a few times.
3. Note that sometimes the sound fails to play.
4. If on the other hand, you press PLAY FROM START, the sound will always play.
Comment 1 Radar WebKit Bug Importer 2022-12-09 05:23:18 PST
<rdar://problem/103178030>
Comment 2 Chris Dumez 2023-01-20 16:56:26 PST
Pull request: https://github.com/WebKit/WebKit/pull/8902
Comment 3 EWS 2023-01-23 13:16:34 PST
Committed 259234@main (703601b447f8): <https://commits.webkit.org/259234@main>

Reviewed commits have been landed. Closing PR #8902 and removing active labels.