File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,8 +3,23 @@ var EventEmitter = require('eventemitter3');
33var NoAudioSound = require ( './NoAudioSound' ) ;
44var BaseSoundManager = require ( '../BaseSoundManager' ) ;
55var NOOP = require ( '../../utils/NOOP' ) ;
6+ /*!
7+ * @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
8+ */
69var NoAudioSoundManager = new Class ( {
710 Extends : EventEmitter ,
11+ /**
12+ * No audio implementation of the sound manager. It is used if audio has been
13+ * disabled in the game config or the device doesn't support any audio.
14+ *
15+ * It represents a graceful degradation of sound manager logic that provides
16+ * minimal functionality and prevents Phaser projects that use audio from
17+ * breaking on devices that don't support any audio playback technologies.
18+ *
19+ * @class Phaser.Sound.NoAudioSoundManager
20+ * @constructor
21+ * @param {Phaser.Game } game - Reference to the current game instance.
22+ */
823 initialize : function NoAudioSoundManager ( game ) {
924 EventEmitter . call ( this ) ;
1025 this . game = game ;
You can’t perform that action at this time.
0 commit comments