Stop All Sounds | |
stop all sounds | |
Category | Sound |
Type | Stack |
Introduced in | 02Dec06 (0.x) |
The stop all sounds block is a stack block and a Sound block. The block will stop any sounds currently being played on all sprites and the stage. Pressing the Stop Sign or the Stop () block will also stop all sounds, but they are not usually used for the purpose of stopping sounds as they will stop all scripts as well.
Example Uses
As this block stops all playing sounds, it is widely used when a music track (and sound effects) must cease. This is often for events such as pausing the project or muting it.
Some common uses for the Stop All Sounds block:
- Stopping any playing sounds before the project moves to the next scene (used in animation)
when I receive [attack v] stop all sounds start sound (music v) broadcast (shark v)
- Stopping songs that are playing in a music player project
when I receive [pause v] stop all sounds switch costume to (not playing music v)
- In a project that provides the option of music being on or off, turning off the music
when green flag clicked forever if <(mute) = [yes]> then stop all sounds end
Stopping Music Blocks
The Stop All Sounds block cannot stop sounds produced from the two sound-producing blocks in the Music Extension (being the play drum ( v) for () beats
and play note () for () beats
blocks). Note that this was not the case in versions prior to Scratch 3.0, where the Stop All Sounds block could stop these blocks. This discrepancy has been classified as a bug.[1]
Suggestions
Some users have suggested a block which could stop a certain sound.[2] It would look like this:
stop sound (pop v):: sound