OfflineAudioCompletionEvent()

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

Note: You wouldn't generally use the constructor manually. OfflineAudioCompletionEvents are despatched to OfflineAudioContext instances for legacy reasons.

Syntax

var offlineAudioCompletionEvent = new OfflineAudioCompletionEvent(type, init)

Parameters

type Optional

A DOMString representing the type of object to create.

init Optional

Options are as follows:

  • renderedBuffer: The rendered AudioBuffer containing the audio data.

Return value

A new OfflineAudioCompletionEvent object instance.

Specifications

Specification
Web Audio API
# dom-offlineaudiocompletionevent-offlineaudiocompletionevent

Browser compatibility

BCD tables only load in the browser