diff src/com/aurellem/capture/examples/Basic.java @ 56:afc437f637bd

improved formating
author Robert McIntyre <rlm@mit.edu>
date Sat, 03 Dec 2011 19:25:27 -0600
parents 3dc1f15e1e13
children
line wrap: on
line diff
     1.1 --- a/src/com/aurellem/capture/examples/Basic.java	Sat Dec 03 19:18:38 2011 -0600
     1.2 +++ b/src/com/aurellem/capture/examples/Basic.java	Sat Dec 03 19:25:27 2011 -0600
     1.3 @@ -11,30 +11,29 @@
     1.4  
     1.5  
     1.6  /**
     1.7 - * 
     1.8 - * Demonstrates how to use basic Audio/Video capture with a jMonkeyEngine 
     1.9 - * application. You can use these techniques to make high quality cutscenes
    1.10 - * or demo videos, even on very slow laptops.
    1.11 + * Demonstrates how to use basic Audio/Video capture with a
    1.12 + * jMonkeyEngine application. You can use these techniques to make
    1.13 + * high quality cutscenes or demo videos, even on very slow laptops.
    1.14   * 
    1.15   * @author Robert McIntyre
    1.16   */
    1.17  
    1.18  public class Basic {
    1.19  	
    1.20 -	public static void main(String[] ignore) throws IOException{
    1.21 -		File video = File.createTempFile("JME-water-video", ".avi");
    1.22 -		File audio = File.createTempFile("JME-water-audio", ".wav");
    1.23 +    public static void main(String[] ignore) throws IOException{
    1.24 +	File video = File.createTempFile("JME-water-video", ".avi");
    1.25 +	File audio = File.createTempFile("JME-water-audio", ".wav");
    1.26  		
    1.27 -		SimpleApplication app = new TestPostWater();
    1.28 -		app.setTimer(new IsoTimer(60));
    1.29 -		app.setShowSettings(false);
    1.30 +	SimpleApplication app = new TestPostWater();
    1.31 +	app.setTimer(new IsoTimer(60));
    1.32 +	app.setShowSettings(false);
    1.33  		
    1.34 -		Capture.captureVideo(app, video);
    1.35 -		Capture.captureAudio(app, audio);
    1.36 +	Capture.captureVideo(app, video);
    1.37 +	Capture.captureAudio(app, audio);
    1.38  		
    1.39 -		app.start();
    1.40 +	app.start();
    1.41  		
    1.42 -		System.out.println(video.getCanonicalPath());
    1.43 -		System.out.println(audio.getCanonicalPath());
    1.44 -	}
    1.45 +	System.out.println(video.getCanonicalPath());
    1.46 +	System.out.println(audio.getCanonicalPath());
    1.47 +    }
    1.48  }