add current volume block

This commit is contained in:
Eric Rosenbaum 2017-01-06 10:31:11 -05:00
parent dbe2cef93c
commit 9350baef3b

View file

@ -110,6 +110,10 @@ Scratch3SoundBlocks.prototype.changeVolume = function (args, util) {
util.target.audioPlayer.changeVolume(value);
};
Scratch3SoundBlocks.prototype.getVolume = function (args, util) {
return util.target.audioPlayer.currentVolume;
};
Scratch3SoundBlocks.prototype.setTempo = function (args, util) {
var value = Cast.toNumber(args.TEMPO);
util.target.audioPlayer.setTempo(value);