length
Summary
Length, in sample-frames, of the PCM audio data.
Property of apis/webaudio/AudioBufferapis/webaudio/AudioBuffer
Syntax
Note: This property is read-only.
var result = AudioBuffer.length;
Return Value
Returns an object of type unsigned longunsigned long
Examples
var myArrayBuffer = audioCtx.createBuffer(2, frameCount, audioCtx.sampleRate);
var len = myArrayBuffer.length;
Related specifications
- Web Audio API
- W3C Editor’s Draft