mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-25 17:09:50 -05:00
add current volume block
This commit is contained in:
parent
dbe2cef93c
commit
9350baef3b
1 changed files with 4 additions and 0 deletions
|
@ -110,6 +110,10 @@ Scratch3SoundBlocks.prototype.changeVolume = function (args, util) {
|
||||||
util.target.audioPlayer.changeVolume(value);
|
util.target.audioPlayer.changeVolume(value);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Scratch3SoundBlocks.prototype.getVolume = function (args, util) {
|
||||||
|
return util.target.audioPlayer.currentVolume;
|
||||||
|
};
|
||||||
|
|
||||||
Scratch3SoundBlocks.prototype.setTempo = function (args, util) {
|
Scratch3SoundBlocks.prototype.setTempo = function (args, util) {
|
||||||
var value = Cast.toNumber(args.TEMPO);
|
var value = Cast.toNumber(args.TEMPO);
|
||||||
util.target.audioPlayer.setTempo(value);
|
util.target.audioPlayer.setTempo(value);
|
||||||
|
|
Loading…
Reference in a new issue