OfflineAudioCompletionEvent.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 Status Comment
Web Audio API
The definition of 'OfflineAudioCompletionEvent()' in that specification.
Working Draft Initial definition.

Browser Compatibility

DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
OfflineAudioCompletionEvent() constructorChrome Full support 57
Notes
Full support 57
Notes
Notes Before Chrome 59, the default values were not supported.
Edge Full support ≤79Firefox Full support 53IE No support NoOpera Full support 42Safari ? WebView Android Full support 57
Notes
Full support 57
Notes
Notes Before version 59, the default values were not supported.
Chrome Android Full support 57
Notes
Full support 57
Notes
Notes Before Chrome 59, the default values were not supported.
Firefox Android Full support 53Opera Android Full support 42Safari iOS ? Samsung Internet Android Full support 6.0
Notes
Full support 6.0
Notes
Notes Before Samsung Internet 7.0, the default values were not supported.

Legend

Full support
Full support
No support
No support
Compatibility unknown
Compatibility unknown
See implementation notes.
See implementation notes.