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

AudioBufferSourceNode

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.

interface AudioBufferSourceNode extends AudioScheduledSourceNode {
buffer: AudioBuffer | null;
readonly detune: AudioParam;
loop: boolean;
loopEnd: number;
loopStart: number;
readonly playbackRate: AudioParam;
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;
start(
when?: number,
offset?: number,
duration?: number,
): void;
}
var AudioBufferSourceNode: {};

§Extends

§Properties

§
buffer: AudioBuffer | null
[src]
§
readonly detune: AudioParam
[src]
§
loop: boolean
[src]
§
loopEnd: number
[src]
§
loopStart: number
[src]
§
readonly playbackRate: AudioParam
[src]

§Methods

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