mirror of
https://github.com/photonstorm/phaser
synced 2025-02-25 20:07:08 +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) {
|
set: function (value) {
|
||||||
this.currentConfig.detune = value;
|
this.currentConfig.detune = value;
|
||||||
if (this.source && this.source.detune) {
|
if (this.source && this.source.detune) {
|
||||||
this.source.detune.setValueAtTime(Math.max(-1200, Math.min(value + this.manager.detune, 1200)), 0);
|
this.setRate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue