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 | 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