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.

MDN Reference

Hierarchy

Properties

audioWorklet: AudioWorklet

Available only in secure contexts.

MDN Reference

currentTime: number
length: number
listener: AudioListener
oncomplete: ((this, ev) => any)

Type declaration

onstatechange: ((this, ev) => any)

Type declaration

sampleRate: number

Methods

  • Parameters

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

    Returns AudioBuffer

  • Parameters

    • Optional maxDelayTime: number

    Returns DelayNode

  • Parameters

    • Optional bufferSize: number
    • Optional numberOfInputChannels: number
    • Optional numberOfOutputChannels: number

    Returns ScriptProcessorNode

    Deprecated

    MDN Reference

  • 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.

    MDN Reference

    Parameters

    Returns boolean