Sound effect and volume blocks request redraw

This commit is contained in:
Eric Rosenbaum 2018-05-31 16:47:40 -04:00
parent c9842ec3dc
commit 46f885fc03

View file

@ -229,6 +229,7 @@ class Scratch3SoundBlocks {
if (util.target.audioPlayer === null) return;
util.target.audioPlayer.setEffect(effect, soundState.effects[effect]);
this.runtime.requestRedraw();
}
_syncEffectsForTarget (target) {
@ -277,6 +278,7 @@ class Scratch3SoundBlocks {
util.target.volume = volume;
if (util.target.audioPlayer === null) return;
util.target.audioPlayer.setVolume(util.target.volume);
this.runtime.requestRedraw();
}
getVolume (args, util) {