Baseline Widely available
The maxChannelCount
property of the AudioDestinationNode
interface is an unsigned long
defining the maximum amount of channels that the physical device can handle.
The AudioNode.channelCount
property can be set between 0 and this value (both included). If maxChannelCount
is 0
, like in OfflineAudioContext
, the channel count cannot be changed.
An unsigned long
.
The following would set up an audio graph, featuring an AudioDestinationNode
with maxChannelCount
of 2:
const audioCtx = new AudioContext();
const source = audioCtx.createMediaElementSource(myMediaElement);
source.connect(gainNode);
audioCtx.destination.maxChannelCount = 2;
gainNode.connect(audioCtx.destination);
To see a more complete implementation, check out one of our MDN Web Audio examples, such as Voice-change-o-matic or Violent Theremin.
Specifications Browser compatibility See alsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3