We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

OfflineAudioContext.resume()

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. If the context is not currently suspended or the rendering has not started, the promise is rejected with InvalidStateError.

Syntax

OfflineAudioContext.resume().then(function() { ... });

Parameters

None.

Returns

A Promise resolving to void.

Exceptions

The promise is rejected when the following exception is encountered.

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

Specifications

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

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support49 Yes No No36 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support4949 Yes No36 No5.0

Document Tags and Contributors

Contributors to this page: fscholz, PushpitaPikuDey, jpmedley
Last updated by: fscholz,