Giter Club home page Giter Club logo

jflac's People

Contributors

alexhk90 avatar hendriks73 avatar nguillaumin avatar wolfgangasdf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

jflac's Issues

Skip Not Supported

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?

Compatibility with javafx

would it be possible to make this library compatible with javafx in a way that the Player extends MediaPlayer? I would really like to use flac files with javafx...

Stream playing hangs, premature stop, JustFlac

Hi, it would be great to have an up to date jflac on maven, thanks a lot!

For me and my flacs, the 2013 commit a0eb9b4 breaks flac file stream playing with jdk1.8.0_101, e.g., the example SndPlayer.java hangs because getFormat().getFrameSize() is 4 while getFrameLength() is -1. The example Player.java works, because it does not use RingedAudioInputStream. Would be nice if someone confirms.

Independent of this, many (not all) of my flac's stop playing prematurely/too early. Since years, I used to make the following change in jflac.sourceforge.net:

FlacAudioFileReader.java: last code line, replace audioFileFormat.getFrameLength() by audioFileFormat.getByteLength()

This doesn't agree to the java docs, so I suspect that this is an ugly hack for a bug somewhere else. I found now out that this is resolved in the other jflac fork https://github.com/drogatkin/JustFLAC which does work without this, they state that some bugs have been fixed (in 2013-2014).

Therefore I have merged the current codec+examples of JustFLAC into your nice maven environment, so one can do a mvn install, see
https://github.com/wolfgangasdf/jflac

A few of the codec-related commits of your repository are not in, but I also can't see directly why they are needed (and JustFlac contains also a seek function). I also had to disable a few unit tests because of changes made in JustFlac or in your jflac after the fork.

If you want to merge this, I could check with the JustFlac developers, cleanup a few things and make a pull request.

Best, wolfgang

couldnt get stream decoding to work

when using Flac2PcmAudioInputStream, a reading thread goes into an infinite loop while attempting to read, in RingedAudioInputStream.read().
The cause was that when entering the read method, the code looked at frame.getFrameLength(), which in some cases might return a -1 value.
AudioInputStream's constructor tries to get the proper size, and if it finds an AudioSystem.NOT_SPECIFIED size, it sets the frame size to 1.

So i made a fix in RingedAudioInputStream.read(), where now getFrameLength() gets called rather then frame.getFrameLength().

Please clarify license

Hello. Thanks for this great library. I noticed the codec module license is not clear.

unknown frame size, unknown frame rate

When using jflac for decoding flac files code like AudioSystem.getAudioFileFormat(inputFile).getFormat() returns format with "unknown frame size, unknown frame rate". This prevents playback with this format and conversion of this format via javax.sound.sampled APIs.

Why is the frame size deemed unknown though? If instead of obtaining format I obtain AudioInputStream, this returns proper value via audioInputStream.getFrameLength(), albeit long.

But audioInputStream.getFormat().getFrameSize() returns -1. How come?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.