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,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void;createAnalyser(): AnalyserNode;
createBiquadFilter(): BiquadFilterNode;
createBufferSource(): AudioBufferSourceNode;
createChannelMerger(numberOfInputs?: number): ChannelMergerNode;
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;
createConstantSource(): ConstantSourceNode;
createConvolver(): ConvolverNode;
createDelay(maxDelayTime?: number): DelayNode;
createDynamicsCompressor(): DynamicsCompressorNode;
createGain(): GainNode;
createOscillator(): OscillatorNode;
createPanner(): PannerNode;
createPeriodicWave(
real: number[] | Float32Array,
imag: number[] | Float32Array,
constraints?: PeriodicWaveConstraints,
): PeriodicWave;createPeriodicWave(
real: Iterable<number>,
imag: Iterable<number>,
constraints?: PeriodicWaveConstraints,
): 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,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void;var BaseAudioContext: {
prototype: BaseAudioContext;
new (): BaseAudioContext;
};§Extends
§Properties
§
readonly audioWorklet: AudioWorklet
[src]Available only in secure contexts.
§
readonly destination: AudioDestinationNode
[src]§
readonly listener: AudioListener
[src]§
onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null
[src]§
readonly state: AudioContextState
[src]§Methods
§
addEventListener<K extends keyof BaseAudioContextEventMap>(
[src]type: K,
listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any,
options?: boolean | AddEventListenerOptions,
): void§
addEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions,
): void§
createAnalyser(): AnalyserNode
[src]§
createBiquadFilter(): BiquadFilterNode
[src]§
createBufferSource(): AudioBufferSourceNode
[src]§
createChannelMerger(numberOfInputs?: number): ChannelMergerNode
[src]§
createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode
[src]§
createConstantSource(): ConstantSourceNode
[src]§
createConvolver(): ConvolverNode
[src]§
createDynamicsCompressor(): DynamicsCompressorNode
[src]§
createOscillator(): OscillatorNode
[src]§
createPanner(): PannerNode
[src]§
createPeriodicWave(
[src]real: number[] | Float32Array,
imag: number[] | Float32Array,
constraints?: PeriodicWaveConstraints,
): PeriodicWave§
createPeriodicWave(
[src]real: Iterable<number>,
imag: Iterable<number>,
constraints?: PeriodicWaveConstraints,
): PeriodicWave§
createScriptProcessor(
[src]bufferSize?: number,
numberOfInputChannels?: number,
numberOfOutputChannels?: number,
): ScriptProcessorNode§
createStereoPanner(): StereoPannerNode
[src]§
createWaveShaper(): WaveShaperNode
[src]§
decodeAudioData(
[src]audioData: ArrayBuffer,
successCallback?: DecodeSuccessCallback | null,
errorCallback?: DecodeErrorCallback | null,
): Promise<AudioBuffer>§
removeEventListener<K extends keyof BaseAudioContextEventMap>(
[src]type: K,
listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any,
options?: boolean | EventListenerOptions,
): void§
removeEventListener(
[src]type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions,
): void