Mercurial > jmeCapture
view src/com/aurellem/capture/examples/Basic.java @ 28:7184bc09a92e
need to solve audio recording clicks
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Sun, 30 Oct 2011 10:00:29 -0700 |
parents | 5f616cc420dd |
children |
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 jMonkeyEngine16 * application. You can use these techniques to make high quality cutscenes17 * or demo videos, even on very slow laptops.18 *19 * @author Robert McIntyre20 *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");30 SimpleApplication app = new TestPostWater();31 app.setTimer(new IsoTimer(60));32 app.setShowSettings(false);34 Capture.captureVideo(app, video);35 Capture.captureAudio(app, audio);37 app.start();39 System.out.println(video.getCanonicalPath());40 System.out.println(audio.getCanonicalPath());41 }42 }