Hi,
I downloaded latest joal release so I found that it has sound3d package. I love its architecture, it is much more object oriented and “java style”, so I hoped I could use it in my game. But, it just doesn’t work.
this is the code:
try
{
AudioSystem3D.init();
AudioSystem3D.generateBuffers(1);
AudioSystem3D.generateSources(1);
Buffer buff = AudioSystem3D.loadBuffer(“data/audio/Explode.wav”);
Source source = AudioSystem3D.generateSource(buff);
source.setPosition(0, 0, 0);
AudioSystem3D.getListener().setPosition(0, 0, 0);
source.setMaxDistance(100);
source.play();
}
catch (Exception e)
{
// TODO Auto-generated catch block
e.printStackTrace();
}
it doesnt rise exception, it just doesnt play anything. file is defenetly there and it works good with lwjgl’s joal wrapper.
One another thing bothers me. In joal windows binaries there is joal.jar and joal.dll, but without OpenAL.dll (from lwjgl libraries) it rises exception: net.java.games.joal.OpenALException: Could not load openal library.
So my questions are:
- what is the status of net.java.games.sound3d package
- what’s wrong with my code above
- which dll’s I need to use joal