[Webkit-unassigned] [Bug 180130] New: Repeated stop() throws InvalidStateError on AudioBufferSourceNode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 29 00:30:18 PST 2017
https://bugs.webkit.org/show_bug.cgi?id=180130
Bug ID: 180130
Summary: Repeated stop() throws InvalidStateError on
AudioBufferSourceNode
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 327842
--> https://bugs.webkit.org/attachment.cgi?id=327842&action=review
Simple test.html demonstrating the bug
Steps to reproduce:
- Initialize and start an AudioBufferSourceNode
- Call stop() on the source node
- Call stop() again on the source node
Expected: the source node stops or does nothing, depending whether the node has ended or not. No exception is expected.
What actually happens: "InvalidStateError: The object is in an invalid state." exception is thrown on the second stop() call.
I researched the standard (https://webaudio.github.io/web-audio-api/#methods-5) and it did not suggest this exception is reasonable. My use case is: given a started source node scheduled to stop in the future (using stop(some future time)) stop right now, instead of at the scheduled future time.
Example:
const source = context.createBufferSource()
source.buffer = buffer
source.connect(context.destination)
source.start()
source.stop(context.currentTime + 1)
source.stop()
Occurs on Safari 11.0.1 (12604.3.5.1.1) and WebKit 225263.
--
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/20171129/0d1b99e7/attachment.html>
More information about the webkit-unassigned
mailing list