audio engine handles rest block

This commit is contained in:
Eric Rosenbaum 2017-01-30 10:56:31 -05:00
parent cb4209b27a
commit 9d8819ddc7

View file

@ -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) {