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.
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
var audioCtx = new AudioContext(); var scriptNode = audioCtx.createScriptProcessor(4096, 1, 1); console.log(scriptNode.bufferSize);
BaseAudioContext.createScriptProcessor() for example code.
|Web Audio API
The definition of 'bufferSize' in that specification.
BCD tables only load in the browser