Stage::stopAllSounds()
Stoppt alle Klänge der Figur.
Beispiele

import org.openpatch.scratch.*;
public class StageStopAllSounds {
public StageStopAllSounds() {
Stage myStage = new Stage(600, 240);
myStage.addSound("bump", "assets/bump.wav");
myStage.addSound("music", "assets/music.mp3");
myStage.playSound("bump");
myStage.playSound("music");
myStage.wait(300);
myStage.stopAllSounds();
myStage.exit();
}
public static void main(String[] args) {
new StageStopAllSounds();
}
}
Syntax
Java
.stopAllSounds()
Scratch
stop all sounds
Rückgabe
void