Skip to content

Commit 70b31c7

Browse files
Implemented stopAll method
1 parent 56dab0e commit 70b31c7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

v3/src/sound/BaseSoundManager.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,11 @@ var BaseSoundManager = new Class({
119119
removeByKey: NOOP,
120120
pauseAll: NOOP,
121121
resumeAll: NOOP,
122-
stopAll: NOOP,
122+
stopAll: function () {
123+
this.sounds.forEach(function (sound) {
124+
sound.stop();
125+
});
126+
},
123127
/**
124128
* @private
125129
*/

0 commit comments

Comments
 (0)