Phaser.Sound

Scope: static

Source: src/sound/index.js#L8

Static functions

Static functions

Static functions

SoundManagerCreator

<static> SoundManagerCreator(game)

Description:

Creates a Web Audio, HTML5 Audio or No Audio Sound Manager based on config and device settings.

Be aware of https://developers.google.com/web/updates/2017/09/autoplay-policy-changes

Parameters:

name

type

optional

description

game

Phaser.Game

No

Reference to the current game instance.

Returns: Phaser.Sound.HTML5AudioSoundManager, Phaser.Sound.WebAudioSoundManager, Phaser.Sound.NoAudioSoundManager - The Sound Manager instance that was created.

Source: src/sound/SoundManagerCreator.js#L12
Since: 3.0.0


Updated on