Defined tags property that holds reference to audio tags array

This commit is contained in:
Pavle Goloskokovic 2018-01-11 17:35:25 +01:00
parent b22116e1f8
commit cf83880fb0

View file

@ -4,6 +4,15 @@ var HTML5AudioSound = new Class({
Extends: BaseSound,
initialize: function HTML5AudioSound(manager, key, config) {
if (config === void 0) { config = {}; }
/**
* An array containing all HTML5 Audio tags that could be used for individual
* sound's playback. Number of instances depends on the config value passed
* to the Loader#audio method call, default is 1.
*
* @private
* @property {HTMLAudioElement[]} tags
*/
this.tags = manager.game.cache.audio.get(key);
/**
* Reference to HTML5 Audio tag used for playing sound.
*