We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47b0eea commit c8e64c5Copy full SHA for c8e64c5
1 file changed
src/sound/html5/HTML5AudioSoundManager.js
@@ -87,6 +87,14 @@ var HTML5AudioSoundManager = new Class({
87
this._volume = 1;
88
BaseSoundManager.call(this, game);
89
},
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
+ */
98
add: function (key, config) {
99
var sound = new HTML5AudioSound(this, key, config);
100
this.sounds.push(sound);
0 commit comments