diff 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
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/examples/Advanced.java	Thu Nov 03 18:47:21 2011 -0700
     1.2 +++ b/src/com/aurellem/capture/examples/Advanced.java	Wed Nov 30 06:32:36 2011 -0700
     1.3 @@ -34,6 +34,7 @@
     1.4  import com.jme3.scene.shape.Box;
     1.5  import com.jme3.scene.shape.Sphere;
     1.6  import com.jme3.system.AppSettings;
     1.7 +import com.jme3.system.Natives;
     1.8  
     1.9  
    1.10  /**
    1.11 @@ -73,12 +74,25 @@
    1.12  		app.setSettings(settings);
    1.13  		app.setShowSettings(false);
    1.14  		app.setPauseOnLostFocus(false);
    1.15 -
    1.16 +		
    1.17 +		
    1.18 +		
    1.19  		try {
    1.20  			Capture.captureVideo(app, File.createTempFile("advanced",".avi"));
    1.21  			Capture.captureAudio(app, File.createTempFile("advanced", ".wav"));
    1.22  			}
    1.23  		catch (IOException e) {e.printStackTrace();}
    1.24 +		
    1.25 +		app.start();
    1.26 +	}
    1.27 +	
    1.28 +	public static void test(){
    1.29 +		Advanced app = new Advanced();
    1.30 +		AppSettings settings = new AppSettings(true);
    1.31 +		settings.setAudioRenderer("Send");
    1.32 +		app.setSettings(settings);
    1.33 +		app.setShowSettings(false);
    1.34 +		app.setPauseOnLostFocus(false);
    1.35  		app.start();
    1.36  	}
    1.37