mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 13:13:43 +00:00
Implemented stopAll method
This commit is contained in:
parent
56dab0e0eb
commit
70b31c7273
1 changed files with 5 additions and 1 deletions
|
@ -119,7 +119,11 @@ var BaseSoundManager = new Class({
|
||||||
removeByKey: NOOP,
|
removeByKey: NOOP,
|
||||||
pauseAll: NOOP,
|
pauseAll: NOOP,
|
||||||
resumeAll: NOOP,
|
resumeAll: NOOP,
|
||||||
stopAll: NOOP,
|
stopAll: function () {
|
||||||
|
this.sounds.forEach(function (sound) {
|
||||||
|
sound.stop();
|
||||||
|
});
|
||||||
|
},
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue