# HG changeset patch # User Robert McIntyre # Date 1319865850 25200 # Node ID 87f818f58975c1de44c82e9026fd22f579b68988 # Parent be5ac56826bee30d7b5d5dc5106c979e2bef09b5 more work on Advanced documentation diff -r be5ac56826be -r 87f818f58975 build.xml --- a/build.xml Fri Oct 28 06:52:46 2011 -0700 +++ b/build.xml Fri Oct 28 22:24:10 2011 -0700 @@ -5,6 +5,8 @@ + + @@ -31,7 +33,11 @@ - + + + + + diff -r be5ac56826be -r 87f818f58975 src/com/aurellem/capture/examples/AdvancedAudio.java --- a/src/com/aurellem/capture/examples/AdvancedAudio.java Fri Oct 28 06:52:46 2011 -0700 +++ b/src/com/aurellem/capture/examples/AdvancedAudio.java Fri Oct 28 22:24:10 2011 -0700 @@ -62,10 +62,8 @@ } - private Spatial teapot; - private boolean active = true; - private boolean playing = false; - private MotionPath path; + + private MotionTrack motionControl; @@ -76,8 +74,7 @@ mat.setColor("Color", ColorRGBA.Green); ear.setMaterial(mat); root.attachChild(ear); - } - + } private void createScene() { Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); @@ -85,9 +82,6 @@ mat.setColor("Color", ColorRGBA.Blue); bell.setMaterial(mat); rootNode.attachChild(bell); - - - DirectionalLight light = new DirectionalLight(); light.setDirection(new Vector3f(0, -1, 0).normalizeLocal()); @@ -234,7 +228,7 @@ private void initAudio() { //audioRenderer.setEnvironment(Environment.Cavern); /* gun shot sound is to be triggered by a mouse click. */ - audio_gun = new AudioNode(assetManager, "Sound/Effects/Gun.wav", false); + audio_gun = new AudioNode(assetManager, "Sound/Environment/haydn.wav", false); //audio_gun = new AudioNode(assetManager, "Sound/Effects/dream.wav", false, false); audio_gun.setLooping(false); audio_gun.setVolume(2); @@ -242,7 +236,7 @@ /* nature sound - keeps playing in a loop. */ - audio_nature = new AudioNode(assetManager, "Sound/Environment/Nature.ogg", false, false); + audio_nature = new AudioNode(assetManager, "Sound/Environment/haydn.wav", false, false); audio_nature.setLooping(true); audio_nature.setPositional(true); audio_nature.setLocalTranslation(Vector3f.ZERO.clone());