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.

createChannelSplitter

Summary

Creates a ChannelSplitterNode representing a channel splitter. An exception will be thrown for invalid parameter values.

Method of apis/webaudio/AudioContextapis/webaudio/AudioContext

Syntax

var  = AudioContext.createChannelSplitter(numberOfInputs);

Parameters

numberOfInputs

Data-type
unsigned long

(Optional)

Determines the number of inputs. Values of up to 32 must be supported. If not specified, then 6 will be used.

Return Value

Returns an object of type

ChannelSplitterNode

Examples

var audioCtx = new AudioContext();
var splitter = audioCtx.createChannelSplitter(2);

Related specifications

W3C Web Audio API
W3C Editor’s Draft