jflac icon indicating copy to clipboard operation
jflac copied to clipboard

Skip Not Supported

Open ns96 opened this issue 3 years ago • 3 comments

Hi, I am currently making use of this library as part of a project I am working on to simulate digital music playback from vintage cassette tapes (https://github.com/ns96/cassetteflowJava) and found out that skip is not supported in org.jflac.sound.spi.RingedAudioInputStream.skip(RingedAudioInputStream.java:374). Are there any plans to implement this? If not, what's a potential work around?

ns96 avatar Jan 31 '22 22:01 ns96

I had similar problems, couldn't get skip (or rather, seek) to work. I'm actually not sure that it isn't supported, it could just be that the way it's handled by the interface is a bit surprising. I looked at the source code, and it looked like at least somebody did some work trying to get it to work, but the code looks frankly really messy and badly maintained, and I couldn't figure out how to fix it.

My workaround was to stop using jFLAC, and switching to calling the more official libFLAC via JNI. Information about that here: https://klipspringer.avadeaux.net/decoding-the-flac-audio-format-in-java/#jni

njlarsson avatar Feb 01 '22 05:02 njlarsson

Hi, sorry I have no plans to implement this. I forked the project mostly to have it on Maven Central. I'll take a pull request though :wink:

nguillaumin avatar Feb 01 '22 16:02 nguillaumin

Thanks all for the prompt responses

ns96 avatar Feb 02 '22 17:02 ns96