mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 05:03:37 +00:00
Defined tags property that holds reference to audio tags array
This commit is contained in:
parent
b22116e1f8
commit
cf83880fb0
1 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue