Added HTML5AudioSound class constructor docs

This commit is contained in:
Pavle Goloskokovic 2018-01-26 14:28:15 +01:00
parent 07bbe80fca
commit 0b84831218

View file

@ -1,7 +1,19 @@
var Class = require('../../utils/Class'); var Class = require('../../utils/Class');
var BaseSound = require('../BaseSound'); var BaseSound = require('../BaseSound');
/*!
* @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
*/
var HTML5AudioSound = new Class({ var HTML5AudioSound = new Class({
Extends: BaseSound, Extends: BaseSound,
/**
* HTML5 Audio implementation of the sound.
*
* @class Phaser.Sound.HTML5AudioSound
* @constructor
* @param {Phaser.Sound.HTML5AudioSoundManager} manager - Reference to the current sound manager instance.
* @param {string} key - Asset key for the sound.
* @param {ISoundConfig} [config={}] - An optional config object containing default sound settings.
*/
initialize: function HTML5AudioSound(manager, key, config) { initialize: function HTML5AudioSound(manager, key, config) {
if (config === void 0) { config = {}; } if (config === void 0) { config = {}; }
/** /**