Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/evt/lib/index.ts>dom.ScriptProcessorNode

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.ScriptProcessorNode
implements AudioNode
import { type dom } from "https://deno.land/x/evt@v2.4.22/lib/index.ts";
const { ScriptProcessorNode } = dom;

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

Properties

readonly
deprecated
bufferSize: number
deprecated
onaudioprocess: ((this: ScriptProcessorNode, ev: AudioProcessingEvent) => any) | null

Methods

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