mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Sound effect and volume blocks request redraw
This commit is contained in:
parent
c9842ec3dc
commit
46f885fc03
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue