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.

maxChannelCount

Summary

The maximum number of channels that the physical hardware is capable of supporting. The AudioNode channelCount property can be set between 0 and this value, inclusive. A value of 0 indicates that the channel count may not be changed. Default is 2.

Property of apis/webaudio/AudioDestinationNodeapis/webaudio/AudioDestinationNode

Syntax

Note: This property is read-only.

var result = AudioDestinationNode.maxChannelCount;

Return Value

Returns an object of type unsigned longunsigned long

Examples

var audioCtx = new AudioContext();
var myDestination = audioCtx.destination;
mcc = myDestination.maxChannelCount;

Related specifications

W3C Web Audio API
W3C Editor’s Draft