Firefox Tomorrow

web api instance property

AudioNode: channelCountMode property

View on MDN ↗

The channelCountMode property of the AudioNode interface represents an enumerated value describing the way channels must be matched between the node’s inputs and outputs.

Value

The possible values of the channelCountMode enumerated value, and their meanings are:

[!NOTE] In older versions of the spec, the default for a ChannelSplitterNode was max.

Examples

const audioCtx = new AudioContext();

const oscillator = audioCtx.createOscillator();
const gainNode = audioCtx.createGain();

oscillator.connect(gainNode);
gainNode.connect(audioCtx.destination);

oscillator.channelCountMode = "explicit";

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also