I have a WAV file encoded with ADPCM (id=2), mono, 4 bits per sample and a "fact" chunk. Much stuff that does not appear in "normal" wavs.
The AudioFileReader class of AudioInputStream already fails when parsing the format code (here 2 == ADPCM), it only accepts 1,3,6 and 7.
Is there another way to play such files? Since standard Java obviously cannot do that.
This is the file: https://anonfile.com/c1ianfj5b5/music_wav
For Windows(32/64) and macOS(64) you can use FFSampledSP, v0.9.29 or later. You can get it either via this Maven dependency:
Or via this download link.
Once the
.jaris in the classpath, the following code should work: