Pure Java FLAC decoder (Java Sound SPI) powered by FLAC-library-Java
AudioInputStream ais = AudioSystem.getAudioInputStream(Files.newInputStream(Paths.get(flac)));
Clip clip = AudioSystem.getClip();
clip.open(AudioSystem.getAudioInputStream(new AudioFormat(44100, 16, 2, true, false), ais));
clip.loop(Clip.LOOP_CONTINUOUSLY);
java sound spi