Skip to content

Commit c8e64c5

Browse files
Updated add method docs
1 parent 47b0eea commit c8e64c5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ var HTML5AudioSoundManager = new Class({
8787
this._volume = 1;
8888
BaseSoundManager.call(this, game);
8989
},
90+
/**
91+
* Adds a new sound into the sound manager.
92+
*
93+
* @method Phaser.Sound.HTML5AudioSoundManager#add
94+
* @param {string} key - Asset key for the sound.
95+
* @param {ISoundConfig} [config] - An optional config object containing default sound settings.
96+
* @returns {Phaser.Sound.HTML5AudioSound} The new sound instance.
97+
*/
9098
add: function (key, config) {
9199
var sound = new HTML5AudioSound(this, key, config);
92100
this.sounds.push(sound);

0 commit comments

Comments
 (0)