view src/com/aurellem/capture/examples/Basic.java @ 22:c7a07eefaeea

started work on audio AI
author Robert McIntyre <rlm@mit.edu>
date Sun, 30 Oct 2011 01:19:11 -0700
parents be5ac56826be
children 5f616cc420dd
line wrap: on
line source
1 package com.aurellem.capture.examples;
3 import java.io.File;
4 import java.io.IOException;
6 import jme3test.water.TestPostWater;
8 import com.aurellem.capture.Capture;
9 import com.aurellem.capture.IsoTimer;
10 import com.jme3.app.SimpleApplication;
13 /**
14 *
15 * Demonstrates how to use basic Audio/Video capture with a jMonkeyEngine
16 * application. You can use these techniques to make high quality cutscenes
17 * or demo videos, even on very slow laptops.
18 *
19 * @author Robert McIntyre
20 *
21 */
23 public class Basic {
25 public static void main(String[] ignore) throws IOException{
26 File video = File.createTempFile("JME-water-video", ".avi");
27 File audio = File.createTempFile("JME-water-audio", ".wav");
29 System.out.println(video.getCanonicalPath());
30 System.out.println(audio.getCanonicalPath());
32 SimpleApplication app = new TestPostWater();
33 app.setTimer(new IsoTimer(60));
34 app.setShowSettings(false);
36 Capture.captureVideo(app, video);
37 Capture.captureAudio(app, audio);
39 app.start();
40 }
41 }