Pure Java FLAC decoder (Java Sound SPI) powered by JustFlac
AudioInputStream ais = AudioSystem.getAudioInputStream(Paths.get(flac).toFile());
Clip clip = AudioSystem.getClip();
clip.open(AudioSystem.getAudioInputStream(new AudioFormat(44100, 16, 2, true, false), ais));
clip.loop(Clip.LOOP_CONTINUOUSLY);
rename project into vavi-sound-flac
It isn't a fish, it's just a fork of the popular jFLAC decoder.
https://jitpack.io/#drogatkin/JustFLAC
jFLAC hasn't been updated in a long time and does not support certain formats like 24-bit/192kHz. The decoder also has a few minor bugs. So this project adds support for a new format extension and fixes some bugs.
JustFLAC is already used in MediaChest and Music-Barrel (Java programs) giving life to audiophile quality formats previously supported only by Foobar and DeaDBeeF (C programs).
Follow the link.