ScriptProcessorNode.bufferSize

Note: As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by Audio Workers.

The bufferSize property of the ScriptProcessorNode interface returns an integer representing both the input and output buffer size, in sample-frames. Its value can be a power of 2 value in the range 25616384.

Syntax

var audioCtx = new AudioContext();
var scriptNode = audioCtx.createScriptProcessor(4096, 1, 1);
console.log(scriptNode.bufferSize);

Value

An integer.

Example

See BaseAudioContext.createScriptProcessor() for example code.

Specifications

Specification Status Comment
Web Audio API
The definition of 'bufferSize' in that specification.
Working Draft

Browser compatibility

BCD tables only load in the browser

See also