Module

x/evt/lib/index.ts

šŸ’§EventEmitter's typesafe replacement
Go to Latest
interface dom.AudioContext
implements BaseAudioContext
import { type dom } from "https://deno.land/x/evt@v2.3.1/lib/index.ts";
const { AudioContext } = dom;

An audio-processing graph built from audio modules linked together, each represented by an AudioNode.

Properties

readonly
baseLatency: number
readonly
outputLatency: number

Methods

close(): Promise<void>
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode
createMediaStreamDestination(): MediaStreamAudioDestinationNode
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode
createMediaStreamTrackSource(mediaStreamTrack: MediaStreamTrack): MediaStreamTrackAudioSourceNode
getOutputTimestamp(): AudioTimestamp
resume(): Promise<void>
suspend(): Promise<void>
addEventListener<K extends keyof BaseAudioContextEventMap>(
type: K,
listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof BaseAudioContextEventMap>(
type: K,
listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void