changeset 48:6ecfef90e9eb

system now works with the updated JmeSystem class
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 12:53:31 -0600
parents 74b53dfe369e
children 121b6d7e4d3f
files src/com/aurellem/capture/examples/Advanced.java
diffstat 1 files changed, 1 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/examples/Advanced.java	Sat Dec 03 12:48:40 2011 -0600
     1.2 +++ b/src/com/aurellem/capture/examples/Advanced.java	Sat Dec 03 12:53:31 2011 -0600
     1.3 @@ -70,12 +70,11 @@
     1.4  		Advanced app = new Advanced();
     1.5  		AppSettings settings = new AppSettings(true);
     1.6  		settings.setAudioRenderer("Send");
     1.7 +		JmeSystem.setSystemDelegate(new AurellemSystemDelegate());
     1.8  		app.setSettings(settings);
     1.9  		app.setShowSettings(false);
    1.10  		app.setPauseOnLostFocus(false);
    1.11  		
    1.12 -		
    1.13 -		
    1.14  		try {
    1.15  			Capture.captureVideo(app, File.createTempFile("advanced",".avi"));
    1.16  			Capture.captureAudio(app, File.createTempFile("advanced", ".wav"));
    1.17 @@ -84,17 +83,6 @@
    1.18  		
    1.19  		app.start();
    1.20  	}
    1.21 -	
    1.22 -	public static void test(){
    1.23 -		Advanced app = new Advanced();
    1.24 -		AppSettings settings = new AppSettings(true);
    1.25 -		settings.setAudioRenderer("Send");
    1.26 -		JmeSystem.setSystemDelegate(new AurellemSystemDelegate());
    1.27 -		app.setSettings(settings);
    1.28 -		app.setShowSettings(false);
    1.29 -		app.setPauseOnLostFocus(false);
    1.30 -		app.start();
    1.31 -	}
    1.32  
    1.33  	private Geometry makeEar(Node root, Vector3f position){
    1.34  		Material mat = new Material(assetManager, "Common/MatDefs/Misc/Unshaded.j3md");