AudioProcessingEvent: AudioProcessingEvent() constructor

Deprecated: This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The AudioProcessingEvent() constructor creates a new AudioProcessingEvent object.

Note: Usually, this constructor is not directly called by your code, as the browser creates these objects itself and provides them to the event handler.

Syntax

js
new AudioProcessingEvent(type, options)

Parameters

type

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

options

An object that has the following properties:

playbackTime

A number representing the time when the audio will be played.

inputBuffer

An AudioBuffer containing the input audio data.

outputBuffer

An AudioBuffer where the output audio data will be written.

Return value

A new AudioProcessingEvent.

Specifications

Specification
Web Audio API
# dom-audioprocessingevent-audioprocessingevent

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
AudioProcessingEvent() constructor
Deprecated
Chrome – Full support
Chrome 57 (Release date: 2017-03-09)
footnote Full support
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – No support
Firefox
footnote No support
Opera – Full support
Opera 44 (Release date: 2017-03-21)
footnote Full support
Safari – Full support
Safari 14.1 (Release date: 2021-04-26)
footnote Full support
Chrome Android – Full support
Chrome Android 57 (Release date: 2017-03-16)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote No support
Opera Android – Full support
Opera Android 43 (Release date: 2017-09-27)
footnote Full support
Safari on iOS – Full support
Safari on iOS 14.5 (Release date: 2021-04-26)
footnote Full support
Samsung Internet – Full support
Samsung Internet 7 (Release date: 2018-03-16)
footnote Full support
WebView Android – Full support
WebView Android 57 (Release date: 2017-03-16)
footnote Full support
WebView on iOS – Full support
WebView on iOS 14.5 (Release date: 2021-04-26)
footnote Full support

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support
Deprecated. Not for use in new websites.

See also