Skip to content

Commit 0b84831

Browse files
Added HTML5AudioSound class constructor docs
1 parent 07bbe80 commit 0b84831

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/sound/html5/HTML5AudioSound.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
11
var Class = require('../../utils/Class');
22
var BaseSound = require('../BaseSound');
3+
/*!
4+
* @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
5+
*/
36
var HTML5AudioSound = new Class({
47
Extends: BaseSound,
8+
/**
9+
* HTML5 Audio implementation of the sound.
10+
*
11+
* @class Phaser.Sound.HTML5AudioSound
12+
* @constructor
13+
* @param {Phaser.Sound.HTML5AudioSoundManager} manager - Reference to the current sound manager instance.
14+
* @param {string} key - Asset key for the sound.
15+
* @param {ISoundConfig} [config={}] - An optional config object containing default sound settings.
16+
*/
517
initialize: function HTML5AudioSound(manager, key, config) {
618
if (config === void 0) { config = {}; }
719
/**

0 commit comments

Comments
 (0)