comparison src/com/aurellem/capture/examples/Advanced.java @ 43:2f129118e2d6

removed old files and moved natives unpacking to the AudioRenderer
author Robert McIntyre <rlm@mit.edu>
date Wed, 30 Nov 2011 06:32:36 -0700
parents b1bc965a38d2
children 388f9d062012
comparison
equal deleted inserted replaced
42:b1bc965a38d2 43:2f129118e2d6
32 import com.jme3.scene.Geometry; 32 import com.jme3.scene.Geometry;
33 import com.jme3.scene.Node; 33 import com.jme3.scene.Node;
34 import com.jme3.scene.shape.Box; 34 import com.jme3.scene.shape.Box;
35 import com.jme3.scene.shape.Sphere; 35 import com.jme3.scene.shape.Sphere;
36 import com.jme3.system.AppSettings; 36 import com.jme3.system.AppSettings;
37 import com.jme3.system.Natives;
37 38
38 39
39 /** 40 /**
40 * 41 *
41 * Demonstrates advanced use of the audio capture and recording features. 42 * Demonstrates advanced use of the audio capture and recording features.
71 AppSettings settings = new AppSettings(true); 72 AppSettings settings = new AppSettings(true);
72 settings.setAudioRenderer("Send"); 73 settings.setAudioRenderer("Send");
73 app.setSettings(settings); 74 app.setSettings(settings);
74 app.setShowSettings(false); 75 app.setShowSettings(false);
75 app.setPauseOnLostFocus(false); 76 app.setPauseOnLostFocus(false);
76 77
78
79
77 try { 80 try {
78 Capture.captureVideo(app, File.createTempFile("advanced",".avi")); 81 Capture.captureVideo(app, File.createTempFile("advanced",".avi"));
79 Capture.captureAudio(app, File.createTempFile("advanced", ".wav")); 82 Capture.captureAudio(app, File.createTempFile("advanced", ".wav"));
80 } 83 }
81 catch (IOException e) {e.printStackTrace();} 84 catch (IOException e) {e.printStackTrace();}
85
86 app.start();
87 }
88
89 public static void test(){
90 Advanced app = new Advanced();
91 AppSettings settings = new AppSettings(true);
92 settings.setAudioRenderer("Send");
93 app.setSettings(settings);
94 app.setShowSettings(false);
95 app.setPauseOnLostFocus(false);
82 app.start(); 96 app.start();
83 } 97 }
84 98
85 private Geometry makeEar(Node root, Vector3f position){ 99 private Geometry makeEar(Node root, Vector3f position){
86 Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md"); 100 Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");