Skip to content

Commit 074c60c

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

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
@@ -199,7 +199,7 @@ Object.defineProperty(WebAudioSound.prototype, 'rate', {
199199
set: function (value) {
200200
this.currentConfig.rate = value;
201201
if (this.source) {
202-
this.source.playbackRate.setValueAtTime(value * this.manager.rate, 0);
202+
this.setRate();
203203
}
204204
}
205205
});

0 commit comments

Comments
 (0)