protected void simpleInitGame()  { display.setTitle("Test Sound Graph"); SoundSystem.init(display.getRenderer().getCamera(), SoundSystem.OUTPUT_DEFAULT); Vector3f max = new Vector3f(5, 5, 5); Vector3f min = new Vector3f( -5, -5, -5); box = new Box("Box", min, max); box.setModelBound(new BoundingSphere()); box.updateModelBound(); box.setLocalTranslation(new Vector3f(0, 0, -50)); TextureState tst = display.getRenderer().createTextureState(); tst.setEnabled(true); tst.setTexture(TextureManager.loadTexture( TestSoundGraph.class.getClassLoader().getResource( "jmetest/data/images/Monkey.jpg"), Texture.MM_LINEAR, Texture.FM_LINEAR)); rootNode.setRenderState(tst); rootNode.attachChild(box); snode = SoundSystem.createSoundNode(); try{  footsteps = SoundSystem.create3DSample(TestSoundGraph.class.getResource("/data/sound/CHAR_CRE_1.ogg")); background =SoundSystem.create3DSample(TestSoundGraph.class.getResource("/data/sound/test.ogg")); }catch(Exception e){ e.printStackTrace();
protected void simpleInitGame() { display.setTitle("Test Sound Graph"); SoundSystem.init(display.getRenderer().getCamera(), SoundSystem.OUTPUT_DEFAULT); Vector3f max = new Vector3f(5, 5, 5); Vector3f min = new Vector3f(-5, -5, -5); box = new Box("Box", min, max); box.setModelBound(new BoundingSphere()); box.updateModelBound(); box.setLocalTranslation(new Vector3f(0, 0, -50)); TextureState tst = display.getRenderer().createTextureState(); tst.setEnabled(true); tst.setTexture(TextureManager.loadTexture( TestSoundGraph.class.getClassLoader().getResource( "jmetest/data/images/Monkey.jpg"), Texture.MM_LINEAR, Texture.FM_LINEAR)); rootNode.setRenderState(tst); rootNode.attachChild(box); snode = SoundSystem.createSoundNode(); try {  background = SoundSystem.create3DSample(TestSoundGraph.class.getClassLoader() .getResource("jmetest/data/sound/test.ogg")); footsteps = SoundSystem.create3DSample(TestSoundGraph.class.getClassLoader() .getResource("jmetest/data/sound/CHAR_CRE_1.ogg")); } catch (Exception e) { e.printStackTrace(); }  SoundSystem.setSampleMaxAudibleDistance(footsteps, 100); SoundSystem.setSampleMaxAudibleDistance(background, 1000); SoundSystem.addSampleToNode(footsteps, snode); SoundSystem.addSampleToNode(background, snode); SoundSystem.setSamplePosition(footsteps, box.getLocalTranslation().x, box.getLocalTranslation().y, box.getLocalTranslation().z); SoundSystem.setSampleMinAudibleDistance(footsteps, 4); SoundSystem.setSampleVolume(background, 0.1f); Configuration config = new Configuration(); config.setDistortion(-10, 70, 6000, 5000, 7000);  SoundSystem.setSampleConfig(footsteps, config);
  protected void simpleInitGame()  {    display.setTitle("Test Sound Graph");    SoundSystem.init(display.getRenderer().getCamera(), SoundSystem.OUTPUT_DEFAULT);    Vector3f max = new Vector3f(5, 5, 5);    Vector3f min = new Vector3f( -5, -5, -5);    box = new Box("Box", min, max);    box.setModelBound(new BoundingSphere());    box.updateModelBound();    box.setLocalTranslation(new Vector3f(0, 0, -50));    TextureState tst = display.getRenderer().createTextureState();    tst.setEnabled(true);    tst.setTexture(TextureManager.loadTexture(        TestSoundGraph.class.getClassLoader().getResource(        "jmetest/data/images/Monkey.jpg"), Texture.MM_LINEAR,        Texture.FM_LINEAR));    rootNode.setRenderState(tst);    rootNode.attachChild(box);    snode = SoundSystem.createSoundNode();    try{            footsteps = SoundSystem.create3DSample(TestSoundGraph.class.getResource("/data/sound/CHAR_CRE_1.ogg"));        background =SoundSystem.create3DSample(TestSoundGraph.class.getResource("/data/sound/test.ogg"));    }catch(Exception e){        e.printStackTrace();    }        SoundSystem.setSampleMaxAudibleDistance(footsteps, 100);    SoundSystem.setSampleMaxAudibleDistance(background, 1000);    SoundSystem.addSampleToNode(footsteps, snode);    SoundSystem.addSampleToNode(background, snode);    SoundSystem.setSamplePosition(footsteps, box.getLocalTranslation().x, box.getLocalTranslation().y, box.getLocalTranslation().z);    SoundSystem.setSampleMinAudibleDistance(footsteps, 4);    SoundSystem.setSampleVolume(background, 0.1f);    Configuration config=new Configuration();    config.setDistortion(-10, 70, 6000, 5000, 7000);        SoundSystem.setSampleConfig(footsteps, config);          }