Skip to content

Commit db06b3d

Browse files
Calling setRate in WebAudioSound detune property's setter method
1 parent 074c60c commit db06b3d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

v3/src/sound/webaudio/WebAudioSound.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Object.defineProperty(WebAudioSound.prototype, 'detune', {
214214
set: function (value) {
215215
this.currentConfig.detune = value;
216216
if (this.source && this.source.detune) {
217-
this.source.detune.setValueAtTime(Math.max(-1200, Math.min(value + this.manager.detune, 1200)), 0);
217+
this.setRate();
218218
}
219219
}
220220
});

0 commit comments

Comments
 (0)