Another thing…
When i put a non existent file on MediaContainer in the test i get a error.
MediaContainer mc2 = new MediaContainer("src/Sounds/walk.ogg"); // this file don't exist
Sound sound2 = new BackgroundSound(mc2, 1);
sound2.setEnable(true);
sound2.setLoop(Sound.INFINITE_LOOPS);
tf_2.addChild(sound2);
then i get this exception
java.io.FileNotFoundException: src\Sounds\walk.ogg (O sistema não pode encontrar o caminho especificado)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at com.xith3d.sound.loaders.OggLoader.load(OggLoader.java:180)
at com.xith3d.scenegraph.MediaContainer.getSoundContainer(MediaContainer.java:112)
at com.xith3d.sound.SoundProcessor.process(SoundProcessor.java:171)
at com.xith3d.sound.SoundProcessor.processAll(SoundProcessor.java:268)
at com.xith3d.render.Renderer.renderOnce(Renderer.java:421)
at com.xith3d.render.Renderer.renderOnce(Renderer.java:448)
at com.xith3d.render.Renderer.renderOnce(Renderer.java:463)
at com.xith3d.scenegraph.VirtualUniverse.renderOnce(VirtualUniverse.java:158)
at com.xith3d.scenegraph.View.renderOnce(View.java:593)
at org.xith3d.render.base.Xith3DEnvironment.render(Xith3DEnvironment.java:785)
at org.xith3d.render.loop.RenderLoop.invokeRendering(RenderLoop.java:640)
at org.xith3d.render.loop.RenderLoop.loopIteration(RenderLoop.java:656)
at org.xith3d.test.sound.SoundTesteJavaSound.loopIteration(SoundTesteJavaSound.java:161)
at org.xith3d.render.loop.RenderLoop.run(RenderLoop.java:775)
at java.lang.Thread.run(Thread.java:595)
But when i do the same thing with my code it runs without exception.
Do you think thta the problem is that it’s not reading the file?