channels : number The number of audio channels to use in playback. Default
mute : boolean Gets or sets the muted state of the SoundManager. This effects all sounds in the game.
new SoundManager(game) The Sound Manager is responsible for playing back audio via either the Legacy HTML Audio tag or via Web Audio
resumeAll() Resumes every sound in the game. Source code:
removeByKey(key) → {number} Removes all Sounds from the SoundManager that have an asset key matching
add(key, volume, loop, connect) → {
unlock() → {boolean} Enables the audio, usually after the first touch. Returns
muteOnPause : boolean Set to true to have all sound muted when the Phaser game pauses (such as on loss of focus),or set to
remove(sound) → {boolean} Removes a Sound from the SoundManager. The removed Sound is destroyed
stopAll() Stops all the sounds in the game. Source code:
Page 2 of 3