Skip to content

Exception for changing channelCountMode on ScriptProcessorNode does not match browsers #2154

Closed

Description

@bzbarsky

https://webaudio.github.io/web-audio-api/#dom-audionode-channelcountmode says:

ScriptProcessorNode
The channel count mode cannot be changed from "explicit" and an InvalidStateError exception MUST be thrown for any attempt to change the value.

Testcase:

var ctx = new AudioContext
var n = ctx.createScriptProcessor(2048, 3)
try { n.channelCountMode = "max"  } catch (e) { console.log(e.name) }

logs "NotSupportedError" in both Chrome and Firefox.

Activity

  1. padenot commented on Feb 13, 2020

    @padenot
    Member

    Telconf decision: align this node on all the others, and make it throw "NotSupportedError", which makes more sense.

  2. added
    Needs EditsDecision has been made, the issue can be fixed. https://speced.github.io/spec-maintenance/about/
    and removed
    Needs DiscussionThe issue needs more discussion before it can be fixed.
    on Feb 13, 2020
  3. added a commit that references this issue on Feb 14, 2020
    e677405
  4. added and removed
    Needs EditsDecision has been made, the issue can be fixed. https://speced.github.io/spec-maintenance/about/
    on Feb 18, 2020
  5. added a commit that references this issue on Nov 23, 2025
    58675f4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions