Reference setAudioContext()

setAudioContext()

Sets the audio context to a specified context to enable cross library compatibility. Accepts an AudioContext, an OfflineAudioContext, or a Tone.js Context. A raw AudioContext supplied here gets the same Firefox fixes

Examples

Syntax

setAudioContext(context)

Parameters

context
AudioContext|OfflineAudioContext|Context: the desired audio context.

Related References