AudioNode Class
A node of the audio routing graph of a BaseAudioContext (https://webaudio.github.io/web-audio-api/#AudioNode): a source, a destination or a processing module, with inputs and outputs that are connected to other nodes and to the AudioParam of other nodes.
public abstract class AudioNode : EventTarget- Inheritance
EventTargetAudioNode
Properties
| Name | Description |
|---|---|
| ChannelCount | Gets or sets the number of channels used to mix the inputs (see AudioNode.ChannelCountMode). |
| ChannelCountMode | Gets or sets how the number of channels of the inputs is computed. |
| ChannelInterpretation | Gets or sets how the channels of the inputs are up-mixed and down-mixed. |
| Context | Gets the context of the node. |
| NumberOfInputs | Gets the number of inputs of the node. |
| NumberOfOutputs | Gets the number of outputs of the node. |
ChannelCount
AudioNode.csGets or sets the number of channels used to mix the inputs (see AudioNode.ChannelCountMode).
public uint ChannelCount { get; set; }Property value
Exceptions
DomException- The value is not supported by the node (a
NotSupportedError, or anIndexSizeErrorfor a destination).
See also
ChannelCountMode
AudioNode.csGets or sets how the number of channels of the inputs is computed.
public ChannelCountMode ChannelCountMode { get; set; }Property value
See also
ChannelInterpretation
AudioNode.csGets or sets how the channels of the inputs are up-mixed and down-mixed.
public ChannelInterpretation ChannelInterpretation { get; set; }Context
AudioNode.csNumberOfInputs
AudioNode.csGets the number of inputs of the node.
public uint NumberOfInputs { get; }NumberOfOutputs
AudioNode.csGets the number of outputs of the node.
public uint NumberOfOutputs { get; }Methods
| Name | Description |
|---|---|
| Connect(AudioNode, uint, uint) | Connects an output of the node to an input of another node. |
| Connect(AudioParam, uint) | Connects an output of the node to a parameter of another node. |
| Disconnect() | Disconnects all the outgoing connections. |
| Disconnect(AudioNode) | Disconnects all the connections to a node. |
| Disconnect(AudioNode, uint) | Disconnects the connections of an output to a node. |
| Disconnect(AudioNode, uint, uint) | Disconnects the connection of an output to an input of a node. |
| Disconnect(AudioParam) | Disconnects all the connections to a parameter. |
| Disconnect(AudioParam, uint) | Disconnects the connection of an output to a parameter. |
| Disconnect(uint) | Disconnects all the outgoing connections of an output. |
Connect overloads
Connect(AudioNode, uint, uint)
AudioNode.csConnects an output of the node to an input of another node.
Connect(AudioParam, uint)
AudioNode.csConnects an output of the node to a parameter of another node.
public void Connect(AudioParam destinationParam, uint output = 0U)Disconnect overloads
Disconnect()
AudioNode.csDisconnects all the outgoing connections.
public void Disconnect()Disconnect(AudioNode)
AudioNode.csDisconnects all the connections to a node.
Disconnect(AudioNode, uint)
AudioNode.csDisconnect(AudioNode, uint, uint)
AudioNode.csDisconnect(AudioParam)
AudioNode.csDisconnects all the connections to a parameter.
public void Disconnect(AudioParam destinationParam)Disconnect(AudioParam, uint)
AudioNode.csDisconnects the connection of an output to a parameter.
public void Disconnect(AudioParam destinationParam, uint output)Disconnect(uint)
AudioNode.csDisconnects all the outgoing connections of an output.