Skip to content

Commit 2572b01

Browse files
Using forEachActiveSound method for global playback methods
1 parent c424b61 commit 2572b01

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

v3/src/sound/BaseSoundManager.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,17 @@ var BaseSoundManager = new Class({
164164
return removed;
165165
},
166166
pauseAll: function () {
167-
this.sounds.forEach(function (sound) {
167+
this.forEachActiveSound(function (sound) {
168168
sound.pause();
169169
});
170170
},
171171
resumeAll: function () {
172-
this.sounds.forEach(function (sound) {
172+
this.forEachActiveSound(function (sound) {
173173
sound.resume();
174174
});
175175
},
176176
stopAll: function () {
177-
this.sounds.forEach(function (sound) {
177+
this.forEachActiveSound(function (sound) {
178178
sound.stop();
179179
});
180180
},

0 commit comments

Comments
 (0)