Skip to content

Commit ec657a6

Browse files
Using forEachActiveSound method when updating global rate and detune settings
1 parent 55f8ca5 commit ec657a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

v3/src/sound/BaseSoundManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ Object.defineProperty(BaseSoundManager.prototype, 'rate', {
240240
},
241241
set: function (value) {
242242
this._rate = value;
243-
this.sounds.forEach(function (sound) {
243+
this.forEachActiveSound(function (sound) {
244244
sound.setRate();
245245
}, this);
246246
this.events.dispatch(new SoundValueEvent(this, 'SOUND_RATE', value));
@@ -256,7 +256,7 @@ Object.defineProperty(BaseSoundManager.prototype, 'detune', {
256256
},
257257
set: function (value) {
258258
this._detune = value;
259-
this.sounds.forEach(function (sound) {
259+
this.forEachActiveSound(function (sound) {
260260
sound.setRate();
261261
}, this);
262262
this.events.dispatch(new SoundValueEvent(this, 'SOUND_DETUNE', value));

0 commit comments

Comments
 (0)