We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd56f4f commit 6c469ecCopy full SHA for 6c469ec
1 file changed
v3/src/sound/webaudio/WebAudioSoundManager.js
@@ -67,6 +67,14 @@ var WebAudioSoundManager = new Class({
67
}
68
return new (window['AudioContext'] || window['webkitAudioContext'])();
69
},
70
+ /**
71
+ * Adds a new sound into the sound manager.
72
+ *
73
+ * @method Phaser.Sound.WebAudioSoundManager#add
74
+ * @param {string} key - Asset key for the sound.
75
+ * @param {ISoundConfig} [config] - An optional config object containing default sound settings.
76
+ * @returns {Phaser.Sound.WebAudioSound} The new sound instance.
77
+ */
78
add: function (key, config) {
79
var sound = new WebAudioSound(this, key, config);
80
this.sounds.push(sound);
0 commit comments