From cf83880fb05a70c445442de5c03a06e3edc576c8 Mon Sep 17 00:00:00 2001 From: Pavle Goloskokovic Date: Thu, 11 Jan 2018 17:35:25 +0100 Subject: [PATCH] Defined tags property that holds reference to audio tags array --- src/sound/html5/HTML5AudioSound.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/sound/html5/HTML5AudioSound.js b/src/sound/html5/HTML5AudioSound.js index 230ae9304..5dbad2e98 100644 --- a/src/sound/html5/HTML5AudioSound.js +++ b/src/sound/html5/HTML5AudioSound.js @@ -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. *