Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

AudioContext

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

interface AudioContext extends BaseAudioContext {
readonly baseLatency: number;
readonly outputLatency: number;
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;
close(): Promise<void>;
createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;
createMediaStreamDestination(): MediaStreamAudioDestinationNode;
createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;
getOutputTimestamp(): AudioTimestamp;
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;
resume(): Promise<void>;
suspend(): Promise<void>;
}
var AudioContext: {
prototype: AudioContext;
new (contextOptions?: AudioContextOptions): AudioContext;
}
;

§Extends

§Properties

§
readonly baseLatency: number
[src]
§
readonly outputLatency: number
[src]

§Methods

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