Phaser API Documentation

  Version: 
setAudioContext(context)

Description:

This method takes a new AudioContext reference and then sets this Sound Manager to use that context for all playback.

As part of this call it also disconnects the master mute and volume nodes and then re-creates them on the new given context.

Parameters:

name type description
context AudioContext

Reference to an already created AudioContext instance.

Returns:
Description:

The WebAudioSoundManager instance.

Since: 3.21.0