Scratch für Java

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();
  }
}
 

Auf GitHub anschauen

Syntax

Java

.stopAllSounds()

Scratch

stop all sounds

Rückgabe

void

stopAllSounds()