Create a new AudioChannel to connect and take control over multiple audio sources.
The parent AudioMixer instance.
The current channel id provided from AudioMixer instance
All the AudioTracks added to the current channel. WARNING: Other sources (like manual stream-source additions) will be not showed in this array, only AudioTrack instances added through input() method.
Get the current high-EQ value
Modify the high-EQ value of the current channel (from -40 to 36) dB
from -40dB to 36dB
Get the current low-EQ value
Modify the low-EQ value of the current channel (from -40 to 36) dB
from -40dB to 36dB
Get the current mid-EQ value
Modify the mid-EQ value of the current channel (from -40 to 36) dB
from -40dB to 36dB
Check if the current channel is muted
Mute output signal from the current channel
Get the current Panning Effect value
Modify the Panning Effect (-1 Left, 1 Right, 0 Center)
Get the current Gain value
Modify the Gain of the current channel (from 0 to 1)
Add a custom node or effect to the channel (in-order).
The effect or audio node to connect between the channelOutputNode nad the mixerInputNode.
Connect a track to the current audio-channel instance.
The audio-track instance to connect processing nodes.
Send outputNode signal to a custom AudioNode or AudioContext instance. Warning: Be sure to disconnect the current audio-context or audio-node.
The current channel instance.
Connect to the audio-context component (Generally used to hear it in the speakers)
The audio-context used in the current channel's mixing-console.
Disconnect from one or all current AudioNode receivers.
Disconnect from the audio-context component used in the current channel's mixing-console.
The current audio-channel instance.
Increase volume smoothly until it's in maximun input volume (this doesn't affect other features like "muted" or "volume" properties)
Decrease volume smoothly until it is silent
Add a new audio input from an audio-element, stream-source, media-source or create a new element by loading a file from a provided URL
An audio-element to create a new AudioTrack instance, an URL of the file to create that element automatically (Base64 supported) or the audio-node to connect directly into channel's inputNode
Reconnect all custom nodes if you have added them previously (outputNode -> customNodes -> mixerInputNode). If you don't have custom nodes added, this method will ensure the connection between the channelOutputNode and the mixerInputNode.
Remove all custom nodes from the channel and then reconnect the channel-output with the mixer-input.
Remove an specific customNode from the channel's customNodes list and then reconnect all nodes.
The previously added effect or audio node.
Generated using TypeDoc
The audio-channel class used to manage AudioMixer's channels. Each channel have a few basic controllers (Volume, Panning and Basic EQ) to modify the audio-output of all the connected audio sources.