Tritonus and Javasound
843802Jan 15 2009 — edited Jan 28 2009Hello
I have been battling with trying to use the Tritonus library (tritonus.org) on my Mac OS X (10.5.6) machine and I have hit a wall. I am trying to build an application to read and write MP3 files. I have placed the following jar (tritonus_share.jar, tritonus_mp3.jar, javalayer.jar) files in my extension folder (/system/library/java/extensions) and the binary files for the encoding ( liblametritonus.dylib, libmp3lame.dylib) in my binary folder (/usr/lib/java). Using the sample programs at jsresources.org, which compile correctly, I am still unable to read or encode MP3 filesstill unable to read or encode MP3 files it errors out with
javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input file
at javax.sound.sampled.AudioSystem.getAudioInputStream(AudioSystem.java:1170)
Has anyone managed to get this kind of setup to work ? Is there something I am missing?
As a side note I have been able to successful read MP3 files using the plug-in provided by Sun (http://java.sun.com/javase/technologies/desktop/media/jmf/mp3/download.html) and MP3SPI provided by javazoom (http://www.javazoom.net/mp3spi/mp3spi.html) so it appears my problems are only with the Tritonus plug-in.
Thanks for your help in advance