Skip to content
Snippets Groups Projects
Commit 0c4118af authored by Herman Andersen Dyrkorn's avatar Herman Andersen Dyrkorn
Browse files

sound is working when hurling all thoughts

parent 9b0670db
No related branches found
No related tags found
1 merge request!25Resolve "soundeffects"
......@@ -31,6 +31,9 @@ public class Controller {
public void handleHurlAll() {
//delete all thoughts and display the list
listView.getItems().clear();
SoundController sound = SoundController.getInstance();
sound.playSound();
}
public void handleHurlSelected() {
......
......@@ -12,7 +12,7 @@ public class SoundController{
//Creating Singleton
private static final SoundController INSTANCE = new SoundController();
private SoundController(){
addSound("woosh.mp3");
addSound("./src/sample/woosh.mp3");
}
public static SoundController getInstance(){
return INSTANCE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment