numberOfChannels
Summary
The number of discrete audio channels described by the PCM audio data.
Property of apis/webaudio/AudioBufferapis/webaudio/AudioBuffer
Syntax
Note: This property is read-only.
var result = AudioBuffer.numberOfChannels;
Return Value
Returns an object of type
Integer
Examples
var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate);
var nc = myArrayBuffer.numberOfChannels;
Related specifications
- Web Audio API
- W3C Editor’s Draft