Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/ogone/src/ogone.dom.d.ts>ScriptProcessorNode

Advanced Web Composition for Future
Latest
interface ScriptProcessorNode
implements AudioNode
import { type ScriptProcessorNode } from "https://deno.land/x/ogone@revb3/src/ogone.dom.d.ts";

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