comparison src/com/aurellem/capture/examples/Advanced.java @ 50:8a091a5f48fa

documentation for basic use case
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 13:35:13 -0600
parents 121b6d7e4d3f
children d799a0278cc9
comparison
equal deleted inserted replaced
49:121b6d7e4d3f 50:8a091a5f48fa
33 import com.jme3.scene.shape.Box; 33 import com.jme3.scene.shape.Box;
34 import com.jme3.scene.shape.Sphere; 34 import com.jme3.scene.shape.Sphere;
35 import com.jme3.system.AppSettings; 35 import com.jme3.system.AppSettings;
36 import com.jme3.system.JmeSystem; 36 import com.jme3.system.JmeSystem;
37 37
38
39 /** 38 /**
40 * 39 *
41 * Demonstrates advanced use of the audio capture and recording features. 40 * Demonstrates advanced use of the audio capture and recording features.
42 * Multiple perspectives of the same scene are simultaneously rendered to 41 * Multiple perspectives of the same scene are simultaneously rendered to
43 * different sound files. 42 * different sound files.
54 * @author Robert McIntyre 53 * @author Robert McIntyre
55 * 54 *
56 */ 55 */
57 56
58 public class Advanced extends SimpleApplication { 57 public class Advanced extends SimpleApplication {
59
60 58
61 private Geometry bell; 59 private Geometry bell;
62 private Geometry ear1; 60 private Geometry ear1;
63 private Geometry ear2; 61 private Geometry ear2;
64 private Geometry ear3; 62 private Geometry ear3;
65 private AudioNode music; 63 private AudioNode music;
66 private MotionTrack motionControl; 64 private MotionTrack motionControl;
67 65
68 public static void main(String[] args) { 66 public static void main(String[] args) {
69 //Logger.getLogger("com.jme3").setLevel(Level.OFF);
70 Advanced app = new Advanced(); 67 Advanced app = new Advanced();
71 AppSettings settings = new AppSettings(true); 68 AppSettings settings = new AppSettings(true);
72 settings.setAudioRenderer(AurellemSystemDelegate.SEND); 69 settings.setAudioRenderer(AurellemSystemDelegate.SEND);
73 JmeSystem.setSystemDelegate(new AurellemSystemDelegate()); 70 JmeSystem.setSystemDelegate(new AurellemSystemDelegate());
74 app.setSettings(settings); 71 app.setSettings(settings);