Phaser API Documentation

  Version: 
add(key, [config])

Description:

Adds a new sound into the sound manager.

Parameters:

name type arguments description
key string

Asset key for the sound.

config Phaser.Types.Sound.SoundConfig <optional>

An optional config object containing default sound settings.

Returns:
Description:

The new sound instance.

Since: 3.0.0