Skip to content

Commit cc25f70

Browse files
Added class constructor docs
1 parent 44ce131 commit cc25f70

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

v3/src/sound/BaseSoundManager.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,20 @@ var NOOP = require('../utils/NOOP');
33
var EventDispatcher = require('../events/EventDispatcher');
44
var SoundEvent = require('./SoundEvent');
55
var SoundValueEvent = require('./SoundValueEvent');
6-
// Phaser.Sound.BaseSoundManager
6+
/*!
7+
* @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
8+
*/
79
var BaseSoundManager = new Class({
10+
/**
11+
* The sound manager is responsible for playing back audio via Web Audio API or HTML Audio tag as fallback.
12+
* The audio file type and the encoding of those files are extremely important.
13+
* Not all browsers can play all audio formats.
14+
* There is a good guide to what's supported [here](https://developer.mozilla.org/en-US/Apps/Fundamentals/Audio_and_video_delivery/Cross-browser_audio_basics#Audio_Codec_Support).
15+
*
16+
* @class Phaser.Sound.BaseSoundManager
17+
* @constructor
18+
* @param {Phaser.Game} game - Reference to the current game instance.
19+
*/
820
initialize: function BaseSoundManager(game) {
921
/**
1022
* Local reference to game.

0 commit comments

Comments
 (0)