Re: SoundJLayer
Posted by jfpauly on Oct 12, 2023; 3:44pm
URL: https://forum.jogamp.org/SoundJLayer-tp4043032p4043039.html
The project did not work recently because orange hosting is stopped. I did not know . Fortunatly you said it to me.
Sound was down without any message from this code :
public void play(String Path) {
Object file = Path;
try {
player = new AdvancedPlayer(new java.net.URL(Path).openStream(),
javazoom.jl.player.FactoryRegistry.systemRegistry().createAudioDevice());
player.setPlayBackListener(this);
Thread playerThread = new Thread(this, "AudioPlayerThread");
playerThread.start();
} catch (Exception ex) {
System.out.println(ex);
JOptionPane.showMessageDialog(menupane1, file, "File is bad or not found",
JOptionPane.ERROR_MESSAGE);
}
}
Why. I do not know. Anyway the problem ,is not here. May be something around threads ??
Here is what I am going to do.
1- move files (textures, sounds, 3d models,..) in the dist file. Repackage to get project working.
2- document project in classes comments (may be elsewhere).
3- Follow your advice and put project in Git. Here, I start from scratch.
If I understand it would allow other Java programmers to get project more easily than getting a Netbeans project.
Ideally, someone would take the project for him with my help, and may be make it live.
Thank you for your advices.
jf Pauly