This has been requested a couple of times on the forum and to get the ball rolling, here is an example of accessing the javaFlacEncoder with Javaobject.
Files and documentation are available here: http://javaflacencoder.sourceforge.net/
As it stands, it will encode a stereo 44100hz 16bit wav file to flac and play it using the Android Media player.
It is built as a class, but needs a lot more work to be able to encode any format wav file.
You need to download the files from the above link and add the javaFlacEncoder-0.3.1.jar to your additional libs folder.
The encoder will also work on B4j, but the Java Media player does not play flac files so you would have to find another way of playing them.
It is not particularly quick to do the encoding and there is a short test file included (hence the size of the zip file).
Depends on: JavaObject, RandomAccessFile
Have fun.
Files and documentation are available here: http://javaflacencoder.sourceforge.net/
As it stands, it will encode a stereo 44100hz 16bit wav file to flac and play it using the Android Media player.
It is built as a class, but needs a lot more work to be able to encode any format wav file.
You need to download the files from the above link and add the javaFlacEncoder-0.3.1.jar to your additional libs folder.
The encoder will also work on B4j, but the Java Media player does not play flac files so you would have to find another way of playing them.
It is not particularly quick to do the encoding and there is a short test file included (hence the size of the zip file).
Depends on: JavaObject, RandomAccessFile
Have fun.
Attachments
Last edited: