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

BaseAudioContext

interface BaseAudioContext extends EventTarget {
readonly audioWorklet: AudioWorklet;
readonly currentTime: number;
readonly destination: AudioDestinationNode;
readonly listener: AudioListener;
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;
readonly sampleRate: number;
readonly state: AudioContextState;
addEventListener<K extends keyof BaseAudioContextEventMap>(
type: K,
listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void;
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void;
createAnalyser(): AnalyserNode;
createBiquadFilter(): BiquadFilterNode;
createBuffer(
numberOfChannels: number,
length: number,
sampleRate: number,
): AudioBuffer;
createBufferSource(): AudioBufferSourceNode;
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
createConstantSource(): ConstantSourceNode;
createConvolver(): ConvolverNode;
createDelay(maxDelayTime?: number): DelayNode;
createDynamicsCompressor(): DynamicsCompressorNode;
createGain(): GainNode;
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode;
createOscillator(): OscillatorNode;
createPanner(): PannerNode;
createPeriodicWave(
real: number[] | Float32Array,
imag: number[] | Float32Array,
): PeriodicWave;
createPeriodicWave(
real: Iterable<number>,
imag: Iterable<number>,
): PeriodicWave;
createScriptProcessor(
bufferSize?: number,
numberOfInputChannels?: number,
numberOfOutputChannels?: number,
): ScriptProcessorNode;
createStereoPanner(): StereoPannerNode;
createWaveShaper(): WaveShaperNode;
decodeAudioData(
audioData: ArrayBuffer,
successCallback?: DecodeSuccessCallback | null,
errorCallback?: DecodeErrorCallback | null,
): Promise<AudioBuffer>;
removeEventListener<K extends keyof BaseAudioContextEventMap>(
type: K,
listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void;
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void;
}
var BaseAudioContext: {
prototype: BaseAudioContext;
}
;

§Extends

§Properties

§
readonly audioWorklet: AudioWorklet
[src]

Available only in secure contexts.

§
readonly currentTime: number
[src]
§
readonly destination: AudioDestinationNode
[src]
§
readonly listener: AudioListener
[src]
§
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null
[src]
§
readonly sampleRate: number
[src]
§
readonly state: AudioContextState
[src]

§Methods

§
addEventListener<K extends keyof BaseAudioContextEventMap>(
type: K,
listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
addEventListener(
type: string,
options?: boolean | AddEventListenerOptions,
): void
[src]
§
createAnalyser(): AnalyserNode
[src]
§
createBiquadFilter(): BiquadFilterNode
[src]
§
createBuffer(
numberOfChannels: number,
length: number,
sampleRate: number,
): AudioBuffer
[src]
§
createBufferSource(): AudioBufferSourceNode
[src]
§
createChannelMerger(numberOfInputs?: number): ChannelMergerNode
[src]
§
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode
[src]
§
createConstantSource(): ConstantSourceNode
[src]
§
createConvolver(): ConvolverNode
[src]
§
createDelay(maxDelayTime?: number): DelayNode
[src]
§
createDynamicsCompressor(): DynamicsCompressorNode
[src]
§
createGain(): GainNode
[src]
§
createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode
[src]
§
createIIRFilter(feedforward: Iterable<number>, feedback: Iterable<number>): IIRFilterNode
[src]
§
createOscillator(): OscillatorNode
[src]
§
createPanner(): PannerNode
[src]
§
createPeriodicWave(
real: number[] | Float32Array,
imag: number[] | Float32Array,
): PeriodicWave
[src]
§
createPeriodicWave(
real: Iterable<number>,
imag: Iterable<number>,
): PeriodicWave
[src]
§
createScriptProcessor(
bufferSize?: number,
numberOfInputChannels?: number,
numberOfOutputChannels?: number,
): ScriptProcessorNode
[src]
§
createStereoPanner(): StereoPannerNode
[src]
§
createWaveShaper(): WaveShaperNode
[src]
§
decodeAudioData(
audioData: ArrayBuffer,
successCallback?: DecodeSuccessCallback | null,
errorCallback?: DecodeErrorCallback | null,
): Promise<AudioBuffer>
[src]
§
removeEventListener<K extends keyof BaseAudioContextEventMap>(
type: K,
listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void
[src]
§
removeEventListener(
type: string,
options?: boolean | EventListenerOptions,
): void
[src]