Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

ScriptProcessorNode

deprecated

Allows the generation, processing, or analyzing of audio using JavaScript.

@deprecated

As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and was replaced by AudioWorklet (see AudioWorkletNode).

interface ScriptProcessorNode extends AudioNode {
readonly bufferSize: number;
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null;
addEventListener<K extends keyof ScriptProcessorNodeEventMap>(
type: K,
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(
type: K,
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
}
var ScriptProcessorNode: {
prototype: ScriptProcessorNode;
}
;

§Extends

§Properties

§
readonly bufferSize: number
[src]
§
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null
[src]

§Methods

§
addEventListener<K extends keyof ScriptProcessorNodeEventMap>(
type: K,
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(
type: K,
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]