Skip to main content
Module

x/evt/lib/types/lib.dom.ts>AudioBufferSourceNode

💧EventEmitter's typesafe replacement
Go to Latest
interface AudioBufferSourceNode
import { type AudioBufferSourceNode } from "https://deno.land/x/evt@v2.3.1/lib/types/lib.dom.ts";

An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network.

Properties

buffer: AudioBuffer | null
readonly
detune: AudioParam
loop: boolean
loopEnd: number
loopStart: number
readonly
playbackRate: AudioParam

Methods

start(
when?: number,
offset?: number,
duration?: number,
): void
addEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(
type: K,
options?: boolean | AddEventListenerOptions,
): void
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
removeEventListener<K extends keyof AudioScheduledSourceNodeEventMap>(
type: K,
options?: boolean | EventListenerOptions,
): void
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void