File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11var Class = require ( '../utils/Class' ) ;
22var NOOP = require ( '../utils/NOOP' ) ;
33var EventEmitter = require ( 'eventemitter3' ) ;
4-
54/*!
65 * @author Pavle Goloskokovic <pgoloskokovic@gmail.com> (http://prunegames.com)
76 */
87var BaseSoundManager = new Class ( {
9-
108 Extends : EventEmitter ,
11-
129 /**
1310 * The sound manager is responsible for playing back audio via Web Audio API or HTML Audio tag as fallback.
1411 * The audio file type and the encoding of those files are extremely important.
@@ -20,9 +17,7 @@ var BaseSoundManager = new Class({
2017 * @param {Phaser.Game } game - Reference to the current game instance.
2118 */
2219 initialize : function BaseSoundManager ( game ) {
23-
2420 EventEmitter . call ( this ) ;
25-
2621 /**
2722 * Local reference to game.
2823 *
@@ -228,7 +223,7 @@ var BaseSoundManager = new Class({
228223 this . forEachActiveSound ( function ( sound ) {
229224 sound . pause ( ) ;
230225 } ) ;
231- this . emit ( 'pauseall' ) ;
226+ this . emit ( 'pauseall' , this ) ;
232227 } ,
233228 /**
234229 * Resumes all the sounds in the game.
You can’t perform that action at this time.
0 commit comments