Closed Bug 1458059 Opened 7 years ago Closed 7 years ago

setValueCurveAtTime takes a sequence<float>

Categories

(Core :: Web Audio, defect)

57 Branch
defect
Not set
normal

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
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)
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
Component: Untriaged → Web Audio
Product: Firefox → Core
You need to log in before you can comment on or make changes to this bug.