Skip to content

Commit 4c172b6

Browse files
Dispatching event when pauseAll is called
1 parent ec657a6 commit 4c172b6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

v3/src/sound/BaseSoundManager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
var Class = require('../utils/Class');
22
var NOOP = require('../utils/NOOP');
33
var EventDispatcher = require('../events/EventDispatcher');
4+
var SoundEvent = require('./SoundEvent');
45
var SoundValueEvent = require('./SoundValueEvent');
56
// Phaser.Sound.BaseSoundManager
67
var BaseSoundManager = new Class({
@@ -167,6 +168,7 @@ var BaseSoundManager = new Class({
167168
this.forEachActiveSound(function (sound) {
168169
sound.pause();
169170
});
171+
this.events.dispatch(new SoundEvent(this, 'SOUND_PAUSE'));
170172
},
171173
resumeAll: function () {
172174
this.forEachActiveSound(function (sound) {

0 commit comments

Comments
 (0)