Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 837 Bytes

stop-all-sounds.md

File metadata and controls

31 lines (21 loc) · 837 Bytes

stop All Sounds

Stop all the sounds that are playing right now and any others waiting to play.

music.stopAllSounds()

If you play sounds or sound effects more than once, the sounds you asked to play later have to wait until the sounds played earlier finish. You can stop the sound that is playing now and all the sounds waiting to play with ||music:stop all sounds||.

#simnote

~hint

Simulator: ||music:stop all sounds|| works on the @boardname@. It might not work in the simulator on every browser.

~

Example #example

Play a sound but stop it right away.

music.playSound(music.sounds(Sounds.Wawawawaa))
music.stopAllSounds()

See also #seealso

play sound, play sound until done

music