I noticed that the sound loaders are not “jar friendly” which means they don’t try to load a sound file from a jar. I tried to add it. I put the following lines at the beginning of OggLoader.load(String filename):
try {
file = new VorbisFile(filename);
oggBitStream_ = new FileInputStream(filename);
} catch (JOrbisException ex) {
try {
oggBitStream_ = getClass().getClassLoader().getResource(filename).openStream();
file = new VorbisFile(oggBitStream_, null, 0);
} catch (JOrbisException e) {
throw new IOException(e.getMessage());
}
}
This loads from a file and falls back to loading from a jar. A clean implementation should put this in the load(URL) method.
This leads to other problems, although it seams to load the file :
javax.sound.sampled.LineUnavailableException: Failed to allocate clip data.
at com.sun.media.sound.MixerClip.implOpen(MixerClip.java:551)
at com.sun.media.sound.MixerClip.open(MixerClip.java:161)
at com.xith3d.sound.drivers.javasound.SoundSourceImpl.setBuffer(SoundSourceImpl.java:82)
at com.xith3d.sound.drivers.javasound.SoundSourceImpl.setContainer(SoundSourceImpl.java:100)
at com.xith3d.scenegraph.View.processSoundNode(View.java:1175)
at com.xith3d.scenegraph.View.renderNode(View.java:908)
at com.xith3d.scenegraph.View.renderNode(View.java:991)
at com.xith3d.scenegraph.View.getRenderFrame(View.java:824)
at com.xith3d.scenegraph.View.renderOnce(View.java:717)
at com.xith3d.scenegraph.View.renderOnce(View.java:655)
at game.Game.run(Game.java:216)
at game.Game.main(Game.java:270)
java.lang.Error: javax.sound.sampled.LineUnavailableException: Failed to allocate clip data.
at com.xith3d.sound.drivers.javasound.SoundSourceImpl.setContainer(SoundSourceImpl.java:103)
at com.xith3d.scenegraph.View.processSoundNode(View.java:1175)
at com.xith3d.scenegraph.View.renderNode(View.java:908)
at com.xith3d.scenegraph.View.renderNode(View.java:991)
at com.xith3d.scenegraph.View.getRenderFrame(View.java:824)
at com.xith3d.scenegraph.View.renderOnce(View.java:717)
at com.xith3d.scenegraph.View.renderOnce(View.java:655)
at game.Game.run(Game.java:216)
at game.Game.main(Game.java:270)
Caused by: javax.sound.sampled.LineUnavailableException: Failed to allocate clip data.
at com.sun.media.sound.MixerClip.implOpen(MixerClip.java:551)
at com.sun.media.sound.MixerClip.open(MixerClip.java:161)
at com.xith3d.sound.drivers.javasound.SoundSourceImpl.setBuffer(SoundSourceImpl.java:82)
at com.xith3d.sound.drivers.javasound.SoundSourceImpl.setContainer(SoundSourceImpl.java:100)
... 8 more
Anybody knowing what’s going on here?
It’s not high priority for me, but I’d still be happy to solve this issue. 
