Skip to content

WaveShaperNode: set curve multiple times - deviate from the specification? #554

@orottier

Description

@orottier

All browsers support setting WaveShaperNode.curve multiple times, see it in action e.g. here: https://jsbin.com/vagevo/edit?js,output

The specification does not allow for this: https://webaudio.github.io/web-audio-api/#dom-waveshapernode-curve

If new curve is not null and [[curve set]] is true, throw an InvalidStateError and abort these steps.

I will raise an issue over at the specification, let's see where that gets us.

In the meantime, I would not oppose following the browser behaviour and allow for updating the curve

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions