mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 15:02:52 -05:00
audio engine handles rest block
This commit is contained in:
parent
cb4209b27a
commit
9d8819ddc7
1 changed files with 2 additions and 2 deletions
|
@ -84,9 +84,9 @@ Scratch3SoundBlocks.prototype.playDrumForBeats = function (args, util) {
|
|||
return util.target.audioPlayer.playDrumForBeats(drum, beats);
|
||||
};
|
||||
|
||||
Scratch3SoundBlocks.prototype.restForBeats = function (args, util) {
|
||||
Scratch3SoundBlocks.prototype.restForBeats = function (args) {
|
||||
var beats = Cast.toNumber(args.BEATS);
|
||||
return util.target.audioPlayer.waitForBeats(beats);
|
||||
return this.runtime.audioEngine.waitForBeats(beats);
|
||||
};
|
||||
|
||||
Scratch3SoundBlocks.prototype.setInstrument = function (args, util) {
|
||||
|
|
Loading…
Reference in a new issue