state

open external val state: AudioContextState(source)

The state read-only property of the BaseAudioContext interface returns the current state of the AudioContext.

MDN Reference