suspend

inline suspend fun AudioContext.suspend()(source)

The suspend() method of the AudioContext Interface suspends the progression of time in the audio context, temporarily halting audio hardware access and reducing CPU/battery usage in the process — this is useful if you want an application to power down the audio hardware when it will not be using an audio context for a while.

MDN Reference


inline suspend fun OfflineAudioContext.suspend(suspendTime: Double)(source)

The suspend() method of the OfflineAudioContext interface schedules a suspension of the time progression in the audio context at the specified time and returns a promise.

MDN Reference