ScriptProcessorNode
deprecatedAllows 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,
listener: EventListenerOrEventListenerObject,
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,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var ScriptProcessorNode: {
prototype: ScriptProcessorNode;
new (): ScriptProcessorNode;
};§Properties
§
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null
[src]§Methods
§
addEventListener<K extends keyof ScriptProcessorNodeEventMap>(
[src]type: K,
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
removeEventListener<K extends keyof ScriptProcessorNodeEventMap>(
[src]type: K,
listener: (this: ScriptProcessorNode, ev: ScriptProcessorNodeEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void