Mercurial > jmeCapture
diff src/com/aurellem/capture/examples/AdvancedAudio.java @ 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 |
line wrap: on
line diff
1.1 --- a/src/com/aurellem/capture/examples/AdvancedAudio.java Fri Oct 28 06:52:46 2011 -0700 1.2 +++ b/src/com/aurellem/capture/examples/AdvancedAudio.java Fri Oct 28 22:24:10 2011 -0700 1.3 @@ -62,10 +62,8 @@ 1.4 } 1.5 1.6 1.7 - private Spatial teapot; 1.8 - private boolean active = true; 1.9 - private boolean playing = false; 1.10 - private MotionPath path; 1.11 + 1.12 + 1.13 private MotionTrack motionControl; 1.14 1.15 1.16 @@ -76,8 +74,7 @@ 1.17 mat.setColor("Color", ColorRGBA.Green); 1.18 ear.setMaterial(mat); 1.19 root.attachChild(ear); 1.20 - } 1.21 - 1.22 + } 1.23 1.24 private void createScene() { 1.25 Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); 1.26 @@ -85,9 +82,6 @@ 1.27 mat.setColor("Color", ColorRGBA.Blue); 1.28 bell.setMaterial(mat); 1.29 rootNode.attachChild(bell); 1.30 - 1.31 - 1.32 - 1.33 1.34 DirectionalLight light = new DirectionalLight(); 1.35 light.setDirection(new Vector3f(0, -1, 0).normalizeLocal()); 1.36 @@ -234,7 +228,7 @@ 1.37 private void initAudio() { 1.38 //audioRenderer.setEnvironment(Environment.Cavern); 1.39 /* gun shot sound is to be triggered by a mouse click. */ 1.40 - audio_gun = new AudioNode(assetManager, "Sound/Effects/Gun.wav", false); 1.41 + audio_gun = new AudioNode(assetManager, "Sound/Environment/haydn.wav", false); 1.42 //audio_gun = new AudioNode(assetManager, "Sound/Effects/dream.wav", false, false); 1.43 audio_gun.setLooping(false); 1.44 audio_gun.setVolume(2); 1.45 @@ -242,7 +236,7 @@ 1.46 1.47 1.48 /* nature sound - keeps playing in a loop. */ 1.49 - audio_nature = new AudioNode(assetManager, "Sound/Environment/Nature.ogg", false, false); 1.50 + audio_nature = new AudioNode(assetManager, "Sound/Environment/haydn.wav", false, false); 1.51 audio_nature.setLooping(true); 1.52 audio_nature.setPositional(true); 1.53 audio_nature.setLocalTranslation(Vector3f.ZERO.clone());