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

x/evt/lib/types/index.ts>dom.AudioContext

💧EventEmitter's typesafe replacement
Go to Latest
interface dom.AudioContext
implements BaseAudioContext
import { type dom } from "https://deno.land/x/evt@v2.5.6/lib/types/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