Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AudioContext

An audio-processing graph built from audio modules linked together, each represented by an AudioNode.

Hierarchy

Index

Properties

BaseAudioContext

BaseAudioContext: { constructor: any; prototype: BaseAudioContext }

Type declaration

Readonly audioWorklet

audioWorklet: AudioWorklet

Readonly baseLatency

baseLatency: number

Readonly currentTime

currentTime: number

Readonly destination

Readonly listener

listener: AudioListener

onstatechange

onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null

Readonly outputLatency

outputLatency: number

Readonly sampleRate

sampleRate: number

Readonly state

Methods

addEventListener

close

  • Returns Promise<void>

createAnalyser

createBiquadFilter

createBuffer

  • createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer
  • Parameters

    • numberOfChannels: number
    • length: number
    • sampleRate: number

    Returns AudioBuffer

createBufferSource

createChannelMerger

createChannelSplitter

createConstantSource

createConvolver

createDelay

  • createDelay(maxDelayTime?: number): DelayNode

createDynamicsCompressor

createGain

createIIRFilter

  • createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode

createMediaElementSource

createMediaStreamDestination

createMediaStreamSource

createMediaStreamTrackSource

createOscillator

createPanner

createPeriodicWave

createScriptProcessor

  • createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode

createStereoPanner

createWaveShaper

decodeAudioData

dispatchEvent

  • dispatchEvent(event: Event): boolean
  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    Parameters

    Returns boolean

getOutputTimestamp

  • Returns AudioTimestamp

removeEventListener

resume

  • Returns Promise<void>

suspend

  • Returns Promise<void>

Generated using TypeDoc