Skip to content

🔊 MP3 Java Sound SPI over lamejb (lame, jna, encoder only)

Notifications You must be signed in to change notification settings

umjammer/lamejb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Release Java CI CodeQL Java

lamejb

© Sam Fisher

MP3 Java Sound SPI over lamejb (jna)

Install

maven

https://jitpack.io/#umjammer/lamejb

lame

e.g.

$ brew install lame

jvm argument

e.g.

-Djna.library.path=/opt/homebrew/lib

Usage

sample

References

TODO

  • encoding parameter by properties
  • AudioFileWriter sample
  • rename to vavi-sound-mp3-lamejb

Java wrapper for the LAME mp3 encoding library.

This is not a Java port of LAME, but only a set of wrapper classes based on JNA (Java Native Access). Tested on Windows and Linux, using lame 3.98, it should work on other platforms too. The LAME library is not provided, the source code can be downloaded from Sourceforge or you can probably find binary distributions available from other web sites.

For usage examples have a look at the source code in the examples subdirectory.

This software is released under the GNU Lesser General Public License and is based on LAMEOnJ by Jose Maria Arranz. Unfortunately LAMEOnJ, which is itself released under the LGPL, is based on a JNI wrapper library which is not free software (as in free beer and free speech...) and for that reason this project was born.