Model/Audio.java
public static void playMusic(String musicFile){
        AudioClip clip =
                new AudioClip(Audio.class.getResource(musicFile).toString());
        clip.setCycleCount(AudioClip.INDEFINITE);
        clip.setVolume(0.5);
        clip.play();
    }
/*Plays the music in the location of musicFile indefinitely*/
Plays the music in the location of musicFile indefinitely
Plays the music in the location of musicFile indefinitely
public static void playMusic(String musicFile){
        AudioClip clip =
                new AudioClip(Audio.class.getResource(musicFile).toString());
        clip.setCycleCount(AudioClip.INDEFINITE);
        clip.setVolume(0.5);
        clip.play();
    }
public static void playMusic ( String musicFile ) { AudioClip clip = new AudioClip ( Audio . class . getResource ( musicFile ) . toString ( ) ) ; clip . setCycleCount ( AudioClip . INDEFINITE ) ; clip . setVolume ( 0.5 ) ; clip . play ( ) ; }
Plays the music in the location of musicFile indefinitely
Plays the music in the location of musicFile indefinitely