"Jau" Ton hinzugefügt
This commit is contained in:
@@ -19,6 +19,7 @@ class TEST_Audio {
|
||||
@Test
|
||||
void test() {
|
||||
sound.spieleJauJau();
|
||||
sound.spieleJau();
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -21,7 +21,19 @@ public class Audio {
|
||||
|
||||
|
||||
/**
|
||||
* Spielt den JauJau Ton ab
|
||||
* Spielt den "Jau" Ton ab
|
||||
*/
|
||||
public void spieleJau() {
|
||||
try {
|
||||
playSound("/sound/jau.wav");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Spielt den "JauJau" Ton ab
|
||||
*/
|
||||
public void spieleJauJau() {
|
||||
try {
|
||||
@@ -33,7 +45,7 @@ public class Audio {
|
||||
|
||||
|
||||
/*
|
||||
* !!! DIESE KLASSE IST NICHT VON MIR !!!
|
||||
* !!! DIESE METHODE IST NICHT VON MIR !!!
|
||||
* Quelle: https://stackoverflow.com/questions/2416935/how-to-play-wav-files-with-java
|
||||
*/
|
||||
/**
|
||||
|
BIN
src/sound/jau.wav
Executable file
BIN
src/sound/jau.wav
Executable file
Binary file not shown.
Reference in New Issue
Block a user