mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Calling setRate in WebAudioSound detune property's setter method
This commit is contained in:
parent
074c60c270
commit
db06b3d742
1 changed files with 1 additions and 1 deletions
|
@ -214,7 +214,7 @@ Object.defineProperty(WebAudioSound.prototype, 'detune', {
|
|||
set: function (value) {
|
||||
this.currentConfig.detune = value;
|
||||
if (this.source && this.source.detune) {
|
||||
this.source.detune.setValueAtTime(Math.max(-1200, Math.min(value + this.manager.detune, 1200)), 0);
|
||||
this.setRate();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue