Initial work
This commit is contained in:
1 parent
52bdf94233
commit
39ba9b81af
2 files changed
+8
-11
No files matched your search
@@ -266,8 +266,10 @@ namespace music {
|
||||
//% blockId=music_play_sound_effect_until_done block="play sound effect %sound|until done"
|
||||
//% weight=98 blockGap=8
|
||||
export function playSoundEffectUntilDone(sound: Sound) {
|
||||
if (!sound) return;
|
||||
if (!sound || numSoundsPlaying >= soundsLimit) return;
|
||||
numSoundsPlaying++;
|
||||
sound.play();
|
||||
numSoundsPlaying--;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user