Skip to content

Commit c57f692

Browse files
Calling setRate method on all sound objects when updating global rate value
1 parent 9fffd57 commit c57f692

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

v3/src/sound/webaudio/WebAudioSoundManager.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,7 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'rate', {
129129
set: function (value) {
130130
this._rate = value;
131131
this.sounds.forEach(function (sound) {
132-
// invoke sound's rate setter method to update
133-
// value based on new global rate value
134-
sound.rate = sound.rate;
132+
sound.setRate();
135133
}, this);
136134
}
137135
});

0 commit comments

Comments
 (0)