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
EventTarget AudioNode

Properties

NameDescription
ChannelCountGets or sets the number of channels used to mix the inputs (see AudioNode.ChannelCountMode).
ChannelCountModeGets or sets how the number of channels of the inputs is computed.
ChannelInterpretationGets or sets how the channels of the inputs are up-mixed and down-mixed.
ContextGets the context of the node.
NumberOfInputsGets the number of inputs of the node.
NumberOfOutputsGets the number of outputs of the node.

ChannelCount

AudioNode.cs

Gets or sets the number of channels used to mix the inputs (see AudioNode.ChannelCountMode).

public uint ChannelCount { get; set; }

Property value

uint

Exceptions

DomException
The value is not supported by the node (a NotSupportedError, or an IndexSizeError for a destination).

See also

ChannelCountMode

AudioNode.cs

Gets or sets how the number of channels of the inputs is computed.

public ChannelCountMode ChannelCountMode { get; set; }

ChannelInterpretation

AudioNode.cs

Gets or sets how the channels of the inputs are up-mixed and down-mixed.

public ChannelInterpretation ChannelInterpretation { get; set; }

Gets the context of the node.

public BaseAudioContext Context { get; }

NumberOfInputs

AudioNode.cs

Gets the number of inputs of the node.

public uint NumberOfInputs { get; }

NumberOfOutputs

AudioNode.cs

Gets the number of outputs of the node.

public uint NumberOfOutputs { get; }

Methods

NameDescription
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.cs

Connects an output of the node to an input of another node.

public AudioNode Connect(AudioNode destinationNode, uint output = 0U, uint input = 0U)
Parameters
destinationNode AudioNode
output uint
input uint
Returns

AudioNode The destination node, so that the calls can be chained.

See also

Connect(AudioParam, uint)

AudioNode.cs

Connects an output of the node to a parameter of another node.

public void Connect(AudioParam destinationParam, uint output = 0U)

Disconnect overloads

Disconnect()

AudioNode.cs

Disconnects all the outgoing connections.

public void Disconnect()

Disconnect(AudioNode)

AudioNode.cs

Disconnects all the connections to a node.

public void Disconnect(AudioNode destinationNode)

Disconnect(AudioNode, uint)

AudioNode.cs

Disconnects the connections of an output to a node.

public void Disconnect(AudioNode destinationNode, uint output)

Disconnect(AudioNode, uint, uint)

AudioNode.cs

Disconnects the connection of an output to an input of a node.

public void Disconnect(AudioNode destinationNode, uint output, uint input)

Disconnect(AudioParam)

AudioNode.cs

Disconnects all the connections to a parameter.

public void Disconnect(AudioParam destinationParam)

Disconnect(AudioParam, uint)

AudioNode.cs

Disconnects the connection of an output to a parameter.

public void Disconnect(AudioParam destinationParam, uint output)

Disconnect(uint)

AudioNode.cs

Disconnects all the outgoing connections of an output.

public void Disconnect(uint output)