changeset 16:87f818f58975

more work on Advanced documentation
author Robert McIntyre <rlm@mit.edu>
date Fri, 28 Oct 2011 22:24:10 -0700
parents be5ac56826be
children dae169178d11
files build.xml src/com/aurellem/capture/examples/AdvancedAudio.java
diffstat 2 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/build.xml	Fri Oct 28 06:52:46 2011 -0700
     1.2 +++ b/build.xml	Fri Oct 28 22:24:10 2011 -0700
     1.3 @@ -5,6 +5,8 @@
     1.4    <property name="src" value="src"/>
     1.5    <property name="dist" value="dist"/>
     1.6    <property name="lib"  value="lib"/>
     1.7 +  <property name="assets"  value="assets"/>
     1.8 +
     1.9  
    1.10    <path id="classpath">
    1.11      <pathelement path="${lib}/audio-send.jar"/>
    1.12 @@ -31,7 +33,11 @@
    1.13  
    1.14    <target name="dist" depends="compile" >
    1.15      <mkdir dir="${dist}"/> 
    1.16 -    <jar jarfile="${dist}/jmeCapture.jar" basedir="${build}"/>
    1.17 +    <jar jarfile="${dist}/jmeCapture.jar">
    1.18 +	 <fileset dir="${src}"/>
    1.19 +	 <fileset dir="${build}"/>
    1.20 +	 <fileset dir="${assets}"/>
    1.21 +    </jar>
    1.22    </target>
    1.23  
    1.24    <target name="clean" > 
     2.1 --- a/src/com/aurellem/capture/examples/AdvancedAudio.java	Fri Oct 28 06:52:46 2011 -0700
     2.2 +++ b/src/com/aurellem/capture/examples/AdvancedAudio.java	Fri Oct 28 22:24:10 2011 -0700
     2.3 @@ -62,10 +62,8 @@
     2.4  	  }
     2.5  
     2.6  	
     2.7 -	 private Spatial teapot;
     2.8 -	 private boolean active = true;
     2.9 -	 private boolean playing = false;
    2.10 -	 private MotionPath path;
    2.11 +	
    2.12 +	 
    2.13  	 private MotionTrack motionControl;
    2.14  	
    2.15  	 
    2.16 @@ -76,8 +74,7 @@
    2.17  		 mat.setColor("Color", ColorRGBA.Green);
    2.18  		 ear.setMaterial(mat);
    2.19  		 root.attachChild(ear);
    2.20 -	 }
    2.21 -	 
    2.22 +	 } 
    2.23  	 
    2.24  	 private void createScene() {
    2.25  		 Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");
    2.26 @@ -85,9 +82,6 @@
    2.27  		 mat.setColor("Color", ColorRGBA.Blue);
    2.28  		 bell.setMaterial(mat);
    2.29  		 rootNode.attachChild(bell);
    2.30 -
    2.31 -		
    2.32 -		 
    2.33  		 
    2.34  		 DirectionalLight light = new DirectionalLight();
    2.35  		 light.setDirection(new Vector3f(0, -1, 0).normalizeLocal());
    2.36 @@ -234,7 +228,7 @@
    2.37    private void initAudio() {
    2.38  	//audioRenderer.setEnvironment(Environment.Cavern);
    2.39      /* gun shot sound is to be triggered by a mouse click. */
    2.40 -	audio_gun = new AudioNode(assetManager, "Sound/Effects/Gun.wav", false);
    2.41 +	audio_gun = new AudioNode(assetManager, "Sound/Environment/haydn.wav", false);
    2.42  	//audio_gun = new AudioNode(assetManager, "Sound/Effects/dream.wav", false, false);
    2.43      audio_gun.setLooping(false);
    2.44      audio_gun.setVolume(2);
    2.45 @@ -242,7 +236,7 @@
    2.46  
    2.47  
    2.48      /* nature sound - keeps playing in a loop. */
    2.49 -    audio_nature = new AudioNode(assetManager, "Sound/Environment/Nature.ogg", false, false);
    2.50 +    audio_nature = new AudioNode(assetManager, "Sound/Environment/haydn.wav", false, false);
    2.51      audio_nature.setLooping(true);
    2.52      audio_nature.setPositional(true);
    2.53      audio_nature.setLocalTranslation(Vector3f.ZERO.clone());