[Webkit-unassigned] [Bug 180388] New: Starting a looped AudioBufferSourceNode with offset > duration throws InvalidStateError
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 4 17:44:37 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=180388
Bug ID: 180388
Summary: Starting a looped AudioBufferSourceNode with offset >
duration throws InvalidStateError
Product: WebKit
Version: WebKit Nightly Build
Hardware: Macintosh
OS: macOS 10.12
Status: NEW
Severity: Normal
Priority: P2
Component: Web Audio
Assignee: webkit-unassigned at lists.webkit.org
Reporter: salomvary at gmail.com
Created attachment 328418
--> https://bugs.webkit.org/attachment.cgi?id=328418&action=review
Simple test.html demonstrating the bug
Given a buffer of 15 seconds start() on the last line in this example throws InvalidStateError: The object is in an invalid state.
const source = context.createBufferSource()
source.buffer = buffer
source.loop = true
source.connect(context.destination)
source.start(0, 20)
Note: it does not throw when the offset is less than the length of the buffer.
Expected: start the looped playback with 5 seconds initial offset. My understanding of the standard and the behavior in Chrome and Firefox suggest that this is a bug. See:
https://webaudio.github.io/web-audio-api/#dom-audiobuffersourcenode-start
--
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/20171205/01761095/attachment-0001.html>
More information about the webkit-unassigned
mailing list