OfflineAudioContext: resume() method

The resume() method of the OfflineAudioContext interface resumes the progression of time in an audio context that has been suspended. The promise resolves immediately because the OfflineAudioContext does not require the audio hardware.

Syntax

js
resume()

Parameters

None.

Return value

A Promise resolving to undefined.

Exceptions

The promise is rejected when an exception is encountered.

InvalidStateError DOMException

Returned if the context is not currently suspended or the rendering has not started.

Specifications

Specification
Web Audio API
# dom-offlineaudiocontext-resume

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
resume

Legend

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

Full support
Full support
Partial support
Partial support