mirror of
https://github.com/photonstorm/phaser
synced 2025-02-17 14:38:30 +00:00
Calling setRate method on all sound objects when updating global rate value
This commit is contained in:
parent
9fffd57ad3
commit
c57f692c85
1 changed files with 1 additions and 3 deletions
|
@ -129,9 +129,7 @@ Object.defineProperty(WebAudioSoundManager.prototype, 'rate', {
|
|||
set: function (value) {
|
||||
this._rate = value;
|
||||
this.sounds.forEach(function (sound) {
|
||||
// invoke sound's rate setter method to update
|
||||
// value based on new global rate value
|
||||
sound.rate = sound.rate;
|
||||
sound.setRate();
|
||||
}, this);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue