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.
On this page
OfflineAudioContext: resume() method
Syntax
js
resume()
Parameters
None.
Return value
Exceptions
The promise is rejected when an exception is encountered.
InvalidStateErrorDOMException-
Returned if the context is not currently suspended or the rendering has not started.
Specifications
| Specification |
|---|
| Web Audio API # dom-offlineaudiocontext-resume |
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 | |
resume |
41 | 14 | 40 | No | 28 | 9 | 41 | 41 | 40 | 28 | 9 | 4.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/OfflineAudioContext/resume