Bug 248658 - AudioBufferSourceNode.start with duration fails sometimes
Summary: AudioBufferSourceNode.start with duration fails sometimes
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Audio (show other bugs)
Version: Safari 15
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-12-02 05:22 PST by Daniel Gjörwell
Modified: 2023-01-23 13:16 PST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.