Returns the underlying WebAudio AudioContext used by the audio
module (the same one shared with file-based playback), or null if
audio is disabled or no compatible WebAudio implementation is
available.
Use this when you need to build a custom WebAudio graph — procedural
SFX, custom filters / spatial nodes, audio analysis — without
spawning a second context. Browsers throttle or refuse multiple
AudioContext instances on the same page and each has its own
suspend-until-gesture state, so sharing matters.
The context is lazily created on first access; the call also returns
the cached instance on every subsequent call.
Returns the underlying WebAudio
AudioContextused by the audio module (the same one shared with file-based playback), ornullif audio is disabled or no compatible WebAudio implementation is available.Use this when you need to build a custom WebAudio graph — procedural SFX, custom filters / spatial nodes, audio analysis — without spawning a second context. Browsers throttle or refuse multiple
AudioContextinstances on the same page and each has its own suspend-until-gesture state, so sharing matters.The context is lazily created on first access; the call also returns the cached instance on every subsequent call.