mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-31 10:22:21 -05:00
fix changeTempo to set global tempo
This commit is contained in:
parent
d8ab835901
commit
0bd84dd9a6
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ AudioPlayer.prototype.setTempo = function (value) {
|
|||
};
|
||||
|
||||
AudioPlayer.prototype.changeTempo = function (value) {
|
||||
var newTempo = this._clamp(this.currentTempo + value, 10, 1000);
|
||||
var newTempo = this._clamp(this.audioEngine.currentTempo + value, 10, 1000);
|
||||
this.audioEngine.currentTempo = newTempo;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue