mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -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;
|
if (util.target.audioPlayer === null) return;
|
||||||
util.target.audioPlayer.setEffect(effect, soundState.effects[effect]);
|
util.target.audioPlayer.setEffect(effect, soundState.effects[effect]);
|
||||||
|
this.runtime.requestRedraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
_syncEffectsForTarget (target) {
|
_syncEffectsForTarget (target) {
|
||||||
|
@ -277,6 +278,7 @@ class Scratch3SoundBlocks {
|
||||||
util.target.volume = volume;
|
util.target.volume = volume;
|
||||||
if (util.target.audioPlayer === null) return;
|
if (util.target.audioPlayer === null) return;
|
||||||
util.target.audioPlayer.setVolume(util.target.volume);
|
util.target.audioPlayer.setVolume(util.target.volume);
|
||||||
|
this.runtime.requestRedraw();
|
||||||
}
|
}
|
||||||
|
|
||||||
getVolume (args, util) {
|
getVolume (args, util) {
|
||||||
|
|
Loading…
Reference in a new issue