2018-01-08 18:47:13 +00:00
|
|
|
var Class = require('../../utils/Class');
|
|
|
|
var BaseSound = require('../BaseSound');
|
|
|
|
var HTML5AudioSound = new Class({
|
|
|
|
Extends: BaseSound,
|
|
|
|
initialize: function HTML5AudioSound(manager, key, config) {
|
|
|
|
if (config === void 0) { config = {}; }
|
2018-01-08 18:54:40 +00:00
|
|
|
/**
|
2018-01-11 16:32:49 +00:00
|
|
|
* Reference to HTML5 Audio tag used for playing sound.
|
2018-01-08 18:54:40 +00:00
|
|
|
*
|
|
|
|
* @private
|
|
|
|
* @property {HTMLAudioElement} audio
|
|
|
|
* @default null
|
|
|
|
*/
|
2018-01-08 18:54:15 +00:00
|
|
|
this.audio = null;
|
2018-01-08 18:47:13 +00:00
|
|
|
BaseSound.call(this, manager, key, config);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
module.exports = HTML5AudioSound;
|