Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void playMusic(String path) {
- InputStream ost;
- try {
- ost = new FileInputStream(new File(path));
- AudioStream audio = new AudioStream(ost);
- AudioPlayer.player.start(audio);
- } catch (Exception e) {
- System.out.println("ERROR");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement