Login  Register

Re: SoundJLayer

Posted by gouessej on Oct 13, 2023; 2:23pm
URL: https://forum.jogamp.org/SoundJLayer-tp4043032p4043041.html

The problem doesn't come from Java3D. JLayer relies on the standard audio API (JavaSound), which I stopped using many years ago because of some bugs and limitations. JLayer is terribly old and unmaintained as far as I know. I've found some posts on StackOverflow that suggest that playing MP3 files with JLayer stopped working since Java 9 in some cases. I advise you to debug to ensure that the file is found (it seems to be the case). The problem is that there are only a very few alternatives to JLayer, JavaFX/OpenJFX (javafx.scene.media) is able to play MP3 files, Paul Lamb's sound library works and there is probably a combination of plugins allowing it to play MP3 files but it's not very actively maintained, JMF is abandoned.
Julien Gouesse | Personal blog | Website