This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

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