W3cubDocs

/Web APIs

OfflineAudioCompletionEvent: OfflineAudioCompletionEvent() constructor

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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
OfflineAudioCompletionEvent 57 79 53 No 44 14 57 57 53 43 14 7.0

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/OfflineAudioCompletionEvent/OfflineAudioCompletionEvent