Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OfflineAudioContext

An AudioContext interface representing an audio-processing graph built from linked together AudioNodes. In contrast with a standard AudioContext, an OfflineAudioContext doesn't render the audio to the device hardware; instead, it generates it, as fast as it can, and outputs the result to an AudioBuffer.

Hierarchy

Index

Properties

BaseAudioContext

BaseAudioContext: { constructor: any; prototype: BaseAudioContext }

Type declaration

Readonly audioWorklet

audioWorklet: AudioWorklet

Readonly currentTime

currentTime: number

Readonly destination

Readonly length

length: number

Readonly listener

listener: AudioListener

oncomplete

oncomplete: ((this: OfflineAudioContext, ev: OfflineAudioCompletionEvent) => any) | null

onstatechange

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

Readonly sampleRate

sampleRate: number

Readonly state

Methods

addEventListener

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

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

removeEventListener

resume

  • Returns Promise<void>

startRendering

suspend

  • suspend(suspendTime: number): Promise<void>
  • Parameters

    • suspendTime: number

    Returns Promise<void>

Generated using TypeDoc