Adds a new sound into the sound manager.
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. |
The new sound instance.