Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void playSound(String name){
- try {
- FileInputStream fileInputStream = new FileInputStream("res/Sounds/Music/" + name + ".mp3");
- player = new Player(fileInputStream);
- player.play();
- } catch(FileNotFoundException e) {
- e.printStackTrace();
- } catch(JavaLayerException e) {
- e.printStackTrace();
- }
- }
- new Player(fileInputStream, volume);
Add Comment
Please, Sign In to add comment