mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
use a single global tempo owned by audioengine
This commit is contained in:
parent
bd8fdad1d4
commit
2d7cfd128a
1 changed files with 6 additions and 6 deletions
|
@ -114,18 +114,18 @@ Scratch3SoundBlocks.prototype.getVolume = function (args, util) {
|
|||
return util.target.audioPlayer.currentVolume;
|
||||
};
|
||||
|
||||
Scratch3SoundBlocks.prototype.setTempo = function (args, util) {
|
||||
Scratch3SoundBlocks.prototype.setTempo = function (args) {
|
||||
var value = Cast.toNumber(args.TEMPO);
|
||||
util.target.audioPlayer.setTempo(value);
|
||||
this.runtime.audioEngine.setTempo(value);
|
||||
};
|
||||
|
||||
Scratch3SoundBlocks.prototype.changeTempo = function (args, util) {
|
||||
Scratch3SoundBlocks.prototype.changeTempo = function (args) {
|
||||
var value = Cast.toNumber(args.TEMPO);
|
||||
util.target.audioPlayer.changeTempo(value);
|
||||
this.runtime.audioEngine.changeTempo(value);
|
||||
};
|
||||
|
||||
Scratch3SoundBlocks.prototype.getTempo = function (args, util) {
|
||||
return util.target.audioPlayer.currentTempo;
|
||||
Scratch3SoundBlocks.prototype.getTempo = function () {
|
||||
return this.runtime.audioEngine.currentTempo;
|
||||
};
|
||||
|
||||
Scratch3SoundBlocks.prototype.soundsMenu = function (args) {
|
||||
|
|
Loading…
Reference in a new issue