OfflineAudioCompletionEvent: OfflineAudioCompletionEvent() constructor

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.

The OfflineAudioCompletionEvent() constructor of the Web Audio API creates a new OfflineAudioCompletionEvent object.

Note: You wouldn't generally use the constructor manually. OfflineAudioCompletionEvent events are dispatched to OfflineAudioContext instances for legacy reasons.

Syntax

js
new OfflineAudioCompletionEvent(type, options)

Parameters

type

A string with the name of the event. It is case-sensitive and browsers set it to complete.

options

An object that, in addition of the properties defined in Event(), can have the following properties:

renderedBuffer

The rendered AudioBuffer containing the audio data.

Return value

Specifications

Specification
Web Audio API
# dom-offlineaudiocompletionevent-offlineaudiocompletionevent

Browser compatibility

BCD tables only load in the browser