createChannelMerger
Summary
Creates a ChannelMergerNode representing a channel merger. An exception will be thrown for invalid parameter values.
Method of apis/webaudio/AudioContextapis/webaudio/AudioContext
Syntax
var = AudioContext.createChannelMerger(numberOfOutputs);
Parameters
numberOfOutputs
- Data-type
- Number
Determines the number of outputs. Values of up to 32 must be supported. If not specified, then 6 will be used.
Return Value
Returns an object of type
ChannelMergerNode
Examples
var audioCtx = new AudioContext();
var merger = audioCtx.createChannelMerger(2);
Related specifications
- W3C Web Audio API
- W3C Editor’s Draft