mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 06:30:38 +00:00
Added HTML5AudioSound class constructor docs
This commit is contained in:
parent
07bbe80fca
commit
0b84831218
1 changed files with 12 additions and 0 deletions
|
@ -1,7 +1,19 @@
|
|||
var Class = require('../../utils/Class');
|
||||
var BaseSound = require('../BaseSound');
|
||||
/*!
|
||||
* @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
|
||||
*/
|
||||
var HTML5AudioSound = new Class({
|
||||
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) {
|
||||
if (config === void 0) { config = {}; }
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue