Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/windmill/node_modules/evt/lib/types/lib.dom.d.ts>OfflineAudioContext

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
interface OfflineAudioContext
implements BaseAudioContext
import { type OfflineAudioContext } from "https://deno.land/x/windmill@v1.333.5/node_modules/evt/lib/types/lib.dom.d.ts";

An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer.

Properties

readonly
length: number
oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null

Methods

resume(): Promise<void>
startRendering(): Promise<AudioBuffer>
suspend(suspendTime: number): Promise<void>
addEventListener<K extends keyof OfflineAudioContextEventMap>(
type: K,
listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof OfflineAudioContextEventMap>(
type: K,
listener: (this: OfflineAudioContext, ev: OfflineAudioContextEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void