Closed
Bug 1458059
Opened 7 years ago
Closed 7 years ago
setValueCurveAtTime takes a sequence<float>
Categories
(Core :: Web Audio, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 1421091
People
(Reporter: toy.raymond, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.117 Safari/537.36
Steps to reproduce:
In a console:
c = new AudioContext()
g = new GainNode(c)
g.gain.setValueCurveAtTime([-1, 0, 1], 10, 20)
Actual results:
Error occurred:
TypeError: Argument 1 of AudioParam.setValueCurveAtTime does not implement interface Float32Array.
Expected results:
This should work.
The error message is kind of funny, but valid, I guess. I think it would be much easier for a developer to understand if the message said arg 1 was expecteed to be a Float32Array but wasn't.
But that's not what this bug is about. setValueCurveAtTime takes a sequence<float> for the first arg: https://webaudio.github.io/web-audio-api/#dom-audioparam-setvaluecurveattime-values
Comment 1•7 years ago
|
||
I've managed to reproduce this issue but is most likely a duplicate of the bug 1421091, which is also logged by you.
Could you please confirm this?
Flags: needinfo?(toy.raymond)
Reporter | ||
Comment 2•7 years ago
|
||
Oops. Sorry about that. It's the same issue. I'm pretty sure I searched, but I guess I just didn't see it.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(toy.raymond)
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Component: Untriaged → Web Audio
Product: Firefox → Core
You need to log in
before you can comment on or make changes to this bug.
Description
•