Skip to content

Commit cf83880

Browse files
Defined tags property that holds reference to audio tags array
1 parent b22116e commit cf83880

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ var HTML5AudioSound = new Class({
44
Extends: BaseSound,
55
initialize: function HTML5AudioSound(manager, key, config) {
66
if (config === void 0) { config = {}; }
7+
/**
8+
* An array containing all HTML5 Audio tags that could be used for individual
9+
* sound's playback. Number of instances depends on the config value passed
10+
* to the Loader#audio method call, default is 1.
11+
*
12+
* @private
13+
* @property {HTMLAudioElement[]} tags
14+
*/
15+
this.tags = manager.game.cache.audio.get(key);
716
/**
817
* Reference to HTML5 Audio tag used for playing sound.
918
*

0 commit comments

Comments
 (0)