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.


var offlineAudioCompletionEvent = new OfflineAudioCompletionEvent(type, init)


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.


Specification Status Comment
Web Audio API
The definition of 'OfflineAudioCompletionEvent()' in that specification.
Working Draft Initial definition.

Browser compatibility

BCD tables only load in the browser