NSF Java Sound SPI powered by nsf
AudioInputStream ais = AudioSystem.getAudioInputStream(Paths.get(nsf).toFile());
Clip clip = AudioSystem.getClip();
clip.open(AudioSystem.getAudioInputStream(new AudioFormat(Encoding.PCM_SIGNED, 44100, 16, 1, 2, 44100, false, props), ais));
clip.loop(Clip.LOOP_CONTINUOUSLY);
track
... specify track # in the file to playmaxPlaySecs
... specify max play time in [sec]
improve decoding speed (i7 imac)- on m2 ultra mac no problem