{{ draft() }}
{{WebAudioRef}}
The ChannelMergerNode
interface, often used in conjunction with its opposite, {{domxref("ChannelSplitterNode")}}, reunites different mono inputs into a single output. Each input will be used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel.
If ChannelMergerNode
has one single output, but as many input as channels to merge; the amount of inputs is defined as a parameter of its constructor and the call to {{domxref("AudioContext.createChannelMerger()")}}. In case no value is given, it default to 6
.
Using this object, it is possible to create outputs with more channels than the rendering hardware is able to process. In that case, when the signal is sent to the {{domxref("AudioContext.listener")}} object, supernumerary channels will be ignored.
- Number of inputs variable; default to
6
. - Number of outputs
1
- Channel count mode
"max"
- Channel count
2
(not used in the default count mode) - Channel interpretation
"speakers"
Properties
No specific property; inherits properties from its parent, {{domxref("AudioNode")}}.
Methods
No specific method; inherits methods from its parent, {{domxref("AudioNode")}}.
Examples
Specifications
Specification | Status | Comment |
---|---|---|
{{SpecName('Web Audio API', '#ChannelMergerNode', 'ChannelMergerNode')}} | {{Spec2('Web Audio API')}} |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | {{CompatVersionUnknown}}{{property_prefix("webkit")}} | Activated on Nightly only | {{CompatNo}} | {{CompatNo}} | {{CompatUnknown}} |
Feature | Android | Firefox Mobile (Gecko) | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | {{CompatUnknown}} | Activated on Nightly only | {{CompatNo}} | {{CompatNo}} | {{CompatUnknown}} |
See also
- Using Web Audio