Namespace: Sound

Phaser. Sound

Classes

BaseSound
BaseSoundManager
HTML5AudioSound
HTML5AudioSoundManager
NoAudioSound
NoAudioSoundManager
WebAudioSound
WebAudioSoundManager

Namespaces

Events

Methods


<static> SoundManagerCreator(game)

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 Description
game Phaser.Game

Reference to the current game instance.

Since: 3.0.0
Source: src/sound/SoundManagerCreator.js (Line 12)
Returns:

The Sound Manager instance that was created.

Type
Phaser.Sound.HTML5AudioSoundManager | Phaser.Sound.WebAudioSoundManager | Phaser.Sound.NoAudioSoundManager