{"json_modified": "2016-03-28T08:37:56.592117", "uuid": "1328c44c-6285-4636-9b45-9d210d41c006", "title": "ScriptProcessorNode.bufferSize", "url": "/en-US/docs/Web/API/ScriptProcessorNode/bufferSize", "tags": ["bufferSize", "API", "Reference", "Property", "R\u00e9f\u00e9rence", "Web Audio API", "ScriptProcessorNode"], "translations": [], "modified": "2015-02-22T12:04:11", "label": "ScriptProcessorNode.bufferSize", "localization_tags": [], "locale": "en-US", "id": 127129, "last_edit": "2015-02-22T12:04:08", "summary": "The following example shows basic usage of a ScriptProcessorNode
to take a track loaded via AudioContext.decodeAudioData
, process it, adding a bit of white noise to each audio sample of the input track (buffer) and play it through the AudioDestinationNode
. For each channel and each sample frame, the scriptNode.onaudioprocess
function takes the associated audioProcessingEvent
and uses it to loop through each channel of the input buffer, and each sample in each channel, and add a small amount of white noise, before setting that result to be the output sample in each case.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Syntax", "title": "Syntax"}, {"id": "Value", "title": "Value"}, {"id": "Example", "title": "Example"}, {"id": "Specifications", "title": "Specifications"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "See_also", "title": "See also"}], "slug": "Web/API/ScriptProcessorNode/bufferSize", "review_tags": ["technical"]}